RENAME |
RENAME oldname TO newname |
Changes the name of an existing table, view, sequence, or private synonym.
|
Keywords
oldname
Specifies the name of the existing object for which you want to assign a new name.
newname
Specifies the new name for the database object.
|
Example
Change the name of the emp table to employees:
RENAME emp TO employees;
Get Oracle SQL: the Essential Reference now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.