change table column name in sql code example
Example 1: change name of colum in sql table
ALTER TABLE "table_name" RENAME COLUMN "column 1" TO "column 2";
Example 2: alter table name sql
-- Microsoft SQL style
EXEC sp_rename 'TableOldName', 'TableNewName';
Example 3: modify column name in sql
ALTER TABLE `Table Name` MODIFY COLUMN `Column Name` Datatype(Size);
Example 4: sql alter column name sql server
EXEC sp_RENAME 'table_name.oldColumn_name' , 'newColumn_name', 'COLUMN'