同义词

同义词相当于alias(别名)

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

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

创建同义词语法:

  create synonym table1 for user1.table1;

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

原文地址:https://www.cnblogs.com/shiliye/p/10727801.html