06-10
20
SQL语句中create的使用 (synonym同义词)
作者:Java伴侣 日期:2006-10-20
设定同义词,方便使用
SQL
select * from emp;等用于select * from abc;
建立共有的同义词
SQL
如果用户的等级不够建立public同义词,可以在system下授权:
grant create any synonym to scott;
grant create public synonym to scott;
取消授权:
revoke create any synoym from scott;
revoke create public synoym from scott;
取消同义词:
drop public synonym abc;
授权取消同义词:
grant dorp public synonym to scott;
取消授权:
revoke drop public synonym to scott;
SQL
select * from emp;等用于select * from abc;
建立共有的同义词
SQL
如果用户的等级不够建立public同义词,可以在system下授权:
grant create any synonym to scott;
grant create public synonym to scott;
取消授权:
revoke create any synoym from scott;
revoke create public synoym from scott;
取消同义词:
drop public synonym abc;
授权取消同义词:
grant dorp public synonym to scott;
取消授权:
revoke drop public synonym to scott;
评论: 0 | 引用: 0 | 查看次数: 1060
发表评论