how to change the column name in sql
SQL ALTER TABLE Rename Column Syntax. Sometimes we want to change the name of a column. To do this in SQL, we specify that we want to change the structure of the table using the ALTER TABLE command, followed by a command that tells the relational database that we want to rename the column.n MySQL, the SQL syntax for ALTER TABLE Rename Column is, ALTER TABLE table_name Change column 1 column 2 [Data Type]; In Oracle, the syntax is, ALTER TABLE table_name RENAME COLUMN column 1 TO column 2;