RENAME table code example

Example 1: how to alter table name in mysql

ALTER TABLE table_name
  RENAME TO new_table_name;

Example 2: rename table in mysql

RENAME TABLE old_table TO new_table;

Example 3: RENAME table pl sql

ALTER TABLE old_table_name
  RENAME TO new_table_name;

Example 4: rename table sql

ALTER TABLE STUDENTS  
RENAME TO ARTISTS;

Example 5: alter table name sql

-- Microsoft SQL style
EXEC sp_rename 'TableOldName', 'TableNewName';

Example 6: modify column name in sql

ALTER TABLE `Table Name` MODIFY COLUMN `Column Name` Datatype(Size);

Tags:

Sql Example