SQL rename statement is used to change the name of the table in database . Sometime we want to change our table name i.e we want to give some useful name of our table . SO by using this statement we can do the same .
Syntax
Rename oldTableName to NewTableName ;
Suppose i have a table , name is student
**Student name** **Student Age** **Student Id**
Mukesh 23 1
Ayush 24 2
I want to rename this table name , see below
rename student to studentInfo ; // after executed this statement student table name will changed to studentInfo
0 Comment(s)