RENAME TABLE allows you to rename multiple tables, which allows you to do things such as swap the names of two tables in a single statement : RENAME « Command MySQL « SQL / MySQL
- SQL / MySQL
- Command MySQL
- RENAME
RENAME TABLE allows you to rename multiple tables, which allows you to do things such as swap the names of two tables in a single statement
RENAME TABLE name1 TO temp_name, name2 TO name1, tmp_name to name2;
Related examples in the same category