用户
|
对象名
|
如何访问
|
||
Jack
|
sal_limit private
|
synonym
|
||
Work_city
|
public
|
synonym
|
||
Plant_detail
|
public
|
synonym
|
||
Jill
|
sal_limit private
|
synonym
|
||
Work_city
|
public
|
synonym
|
||
Plant_detail
|
table
|
owner
|
SQL
|
能否共享
|
原因
|
select max(sal_cap) from sal_limit;
|
不能
|
每个用户都有一个private synonym
-sal_limit ,
它们是不同的对象
|
select count(*0 from work_city where sdesc like 'NEW%'; |
能
|
两个用户访问相同的对象public synonym - work_city
|
select a.sdesc,b.location from work_city a , plant_detail b where a.city_id =b.city_id
|
不能
|
用户jack 通过private synonym访问plant_detail 而jill 是表的所有者,对象不同.
|