This command is used to rename an existing table.
ALTER TABLE oldTableName RENAME TO newTableName
Parameter |
Description |
---|---|
oldTableName |
Current name of the table |
new_table_name |
New name of the table |
alter table h0 rename to h0_1;
The table name is changed. You can run the SHOW TABLES command to display the new table name.