query to change the name of existingtable code example
Example 1: sql change table name
ALTER TABLE exampletable RENAME TO new_table_name;
Example 2: rename table sql
ALTER TABLE STUDENTS
RENAME TO ARTISTS;
ALTER TABLE exampletable RENAME TO new_table_name;
ALTER TABLE STUDENTS
RENAME TO ARTISTS;