Skip to content

RENAME

ALTER TABLE employees
RENAME TO team;
Query OK, 0 rows affected (0.02 sec)

This code renames the “employees” table to “team”. The output “Query OK, 0 rows affected (0.02 sec)” signifies successful execution of the code.