CREATE SYNONYM
- Last Updated: January 17, 2024
- 1 minute read
- OpenEdge
- Version 12.8
- Documentation
Creates a synonym for the specified table, view, or synonym. A synonym is an alias that SQL statements can use instead of the name specified when the table, view, or synonym was created.
Syntax
|
Parameters
- PUBLIC
-
Specifies that the synonym is public: all users can refer to the name without qualifying it. By default, the synonym is private: other users must qualify the synonym by preceding it with the user name of the user who created it.
Users must have the DBA privilege to create public synonyms.
- SYNONYM synonym
-
Name for the synonym.
- FOR [owner_name.]{table_name|view_name|synonym}
-
Table, view, or synonym for which SQL creates the new synonym.
Example
The following example demonstrates the use of the CREATE SYNONYM
statement:
|