How to rename a DB2 table?

In DB2 database, we can use the RENAME TABLE statement to rename a table. The syntax is as follows:

RENAME TABLE table_name TO new_table_name;

In this query, table_name refers to the name of the table you want to rename, and new_table_name is the new name you want to use for the table. After executing this statement, the original table will be renamed to the new table name.

bannerAds