Introduction :-
If you want to change the Table name without loss you data then it's very simple to change the table in MySQL database and sql server database.
Description : -
To change the name of an existing table first to second, use this command as shown below
For Example
You have table name like stodent_tab
and there are four fields like First_name,Last_Name,Stud_ID,Stud_Batch
and you want to change the name of stodent_tab because you have done mistake in student_tab name
So Query Like This
Note -: This query is same if you want to use the sql server database.
If you want to change the Table name without loss you data then it's very simple to change the table in MySQL database and sql server database.
Description : -
To change the name of an existing table first to second, use this command as shown below
RENAME TABLE first TO second;
For Example
You have table name like stodent_tab
and there are four fields like First_name,Last_Name,Stud_ID,Stud_Batch
and you want to change the name of stodent_tab because you have done mistake in student_tab name
So Query Like This
RENAME TABLE stodent_tab TO student_tab;
Note -: This query is same if you want to use the sql server database.


