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

Code Example 1

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

Code Example 2

ALTER TABLE table_name RENAME COLUMN old_name TO new_name;

Code Example 3

ALTER TABLE your_table_name RENAME COLUMN original_column_name TO new_column_name;

Code Example 4

alter table product change price price_kg float;

Code Example 5

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

Code Example 6


Learn ReactJs, React Native from