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

Code Example 1

ALTER TABLE tableName CHANGE `oldcolname` `newcolname` datatype(length);

Code Example 2

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

Code Example 3

ALTER TABLE tableName RENAME COLUMN "oldcolname" TO "newcolname" datatype(length);

Code Example 4

alter table product change price price_kg float;

Learn ReactJs, React Native from