Table renaming is an option in SQL used to rename tables. It is a part of DDL (Data Definition Language).
Table renaming is an option in SQL used to rename tables. It is a part of DDL (Data Definition Language).
Renaming a table can be done in various ways:
RENAME old_table_name TO new_table_name
works only in the same schema while
ALTER TABLE schema.old_table_name RENAME TO new_table_name
can be used on tables in other schemas.