数据库笔记

来源:互联网 发布:mac怎么清理其他内存 编辑:程序博客网 时间:2024/05/17 03:14

oracle:

user1把表t1的select权限授权给user2之后,user2查询t1需要用语句

select * from user1.t1;

user2创建同义词 

create or replace synonym t1 for user1.t1;

之后就可以用select * from t1查询数据;

0 0
原创粉丝点击