Check out example codes for "change column name mysql". It will help you in understanding the concepts better.

Code Example 1

alter table product change price price_kg float;

Code Example 2

ALTER TABLE tableName CHANGE `oldcolname` `newcolname` datatype(length);
(you can remove the backticks if it doesn't work)

Code Example 3

ALTER TABLE table_name RENAME COLUMN old_name TO new_name;

Code Example 4

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

Learn ReactJs, React Native from