Chapter 13 Managing Database Access
A synonym is an alternative name for various types of objects (table, view, sequence, procedure, function, synonym or database package). Most of the time, synonyms are created by a database administrator as they can be used to:
For example, table SALES_DATA is owned by user JWARD. A standard select statement on this table would be:
SELECT * FROM jward.sales_data
The database administrator can create a synonym for this table and owner and call it SALES. In this case, the SQL statement is simplified in the following way:
SELECT * FROM sales
Copyright (C) 2005. Sybase Inc. All rights reserved. |
![]() |