sql change name of column code example
Example 1: how to change the column name in sql
ALTER TABLE table_name
CHANGE COLUMN old_name TO new_name;
Example 2: how to change column name in sql
ALTER TABLE Student RENAME COLUMN NAME TO FIRST_NAME;
ALTER TABLE `Table Name` MODIFY COLUMN `Column Name` Datatype(Size);
Example 3: modify column name in tsql
sp_rename 'table_name.old_column', 'new_name', 'COLUMN';