Rename a table without recreating it.
Section: create and alter tables
Rename a table
sql
sql
RENAME TABLE users TO app_users;Explanation
Useful during refactors or when aligning schema names with application conventions.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing create and alter tables