Synonyms are alternative names for various types of database object, which can be used to mask the name and owner of the object, provide location transparency for remote objects of a distributed database, and simplify SQL statements for database users.
Standard Statement | Statement with Synonym |
---|---|
SELECT * FROM jward.sales_data |
SELECT * FROM sales |
You can create multiple synonyms for a base object (table, view, etc.), but each synonym can have only one base object. You can view the synonyms defined for a particular base object on the Dependencies tab of its property sheet. If you delete the base object of a synonym, the synonym is deleted as well.