What is Synonym in Netezza:
-
The name of a synonym is subject to the same restrictions as the
name of a table or view. The synonym name must be unique within each schema of
a database.- We can create a synonym for a nonexistent table or view. At run time, the system expands the object name to its fully qualified form. If the referenced object does not exist, the system displays an error message.
What is the use of synonym in Netezza:
- It’s mainly used to reference the tables, views or functions and allows us to create easily typed names (short name) for long object names.
How to view the synonym in NZ
database using nzsql.
- After logging into database using NZSQL then use the below command to display the synonym.
- \dy
Comments
Post a Comment