how to give constraint name in mysql code example Example: how to alter table name in mysql ALTER TABLE table_name RENAME TO new_table_name;