Check out example codes for "sql rename column". It will help you in understanding the concepts better.

Code Example 1

ALTER TABLE table_name RENAME COLUMN old_name TO new_name;

Code Example 2

ALTER TABLE table_name RENAME COLUMN old_name TO new_name;

Code Example 3

EXEC SP_RENAME 'TABLE_NAME.OLD_COLUMN_NAME','NEW_COLUMN_NAME'

Code Example 4

EXEC sp_RENAME 'table_name.oldColumn_name' , 'newColumn_name', 'COLUMN'

Code Example 5

--The following example renames the column TerritoryID in the table Sales.SalesTerritory to TerrID in the AdventureWorks database.

EXEC sp_rename 'Sales.SalesTerritory.TerritoryID', 'TerrID', 'COLUMN';

Code Example 6

sp_rename 'table_name.old_column', 'new_name', 'COLUMN';

Learn ReactJs, React Native from akashmittal.com