how to update column name in sql 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: alter table name sql
EXEC sp_rename 'TableOldName', 'TableNewName';
Example 4: modify column name in sql
ALTER TABLE `Table Name` MODIFY COLUMN `Column Name` Datatype(Size);
Example 5: rename column sql
ALTER TABLE nom_table
RENAME COLUMN colonne_ancien_nom TO colonne_nouveau_nom
Example 6: how to rename columns in sql server
EXEC sp_rename 'Sales.SalesTerritory.TerritoryID', 'TerrID', 'COLUMN';