How to rename a table in MySQL

RENAME TABLE oldTable TO newTable;

Replace oldTable with the table’s name that you want to rename and newTable with the new table name.

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.