sql to rename column code example
Example 1: modify column name in sql
ALTER TABLE `Table Name` MODIFY COLUMN `Column Name` Datatype(Size);
Example 2: modify column name in tsql
sp_rename 'table_name.old_column', 'new_name', 'COLUMN';
ALTER TABLE `Table Name` MODIFY COLUMN `Column Name` Datatype(Size);
sp_rename 'table_name.old_column', 'new_name', 'COLUMN';