Check out example codes for "update column name in sql". 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

-- Microsoft SQL style
EXEC sp_rename 'TableOldName', 'TableNewName';

Code Example 3


Code Example 4

ALTER TABLE table_name

ALTER COLUMN column_name datatype;

Code Example 5

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

Learn ReactJs, React Native from