mysql rename a column in a table code example
Example 1: cmd to rename a collumn name in sql
ALTER TABLE table_name RENAME COLUMN old_name TO new_name;
Example 2: how to change column name in mysql
alter table product change price price_kg float;
Example 3: modify column name in tsql
sp_rename 'table_name.old_column', 'new_name', 'COLUMN';