How To Use Synonyms In OraclePLSQL
Description
Synonyms is an alternative name for the objects such as tables, views, sequences stored procedures and other database objects.
Syntax
- Create or Replace Public Synonym [Schema .] synonyms_name
- for [Schema .] object_name;
Example
- Create public synonym Employee
- for app.Employee;
Drop Synonyms
In Oracle, you have been creating synonyms and if you want to drop the synonyms, use the command, given below-
Syntax
- Drop public synonym synonym_name;
Example
- Drop public synonyms Employee;
Summary