同义词相当于alias(别名)

比如在schema2中创建schema1.table的同义词table1

则在schema2中执行select * from table1时,就相当于在执行select * from schema1.table

 

创建同义词语法:

  create synonym table1 for user1.table1;

 

-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

内容来源于网络如有侵权请私信删除
你还没有登录,请先登录注册
  • 还没有人评论,欢迎说说您的想法!