RENAME and ALTER TABLE RENAME
In RENAME
and ALTER TABLE RENAME
operations, the base object is always the new table name. In the following example, the base object name is considered to be index_paydate
.
ALTER TABLE hr.indexPayrollDate RENAME TO index_paydate;
or...
RENAME hr.indexPayrollDate TO index_paydate;
The derived object name is hr.indexPayrollDate
.