Rash
0
Q:

rename table column name in mysql

ALTER TABLE tableName CHANGE `oldcolname` `newcolname` datatype(length);
3
RENAME TABLE old_table TO new_table;
3
ALTER TABLE tableName CHANGE `oldcolname` `newcolname` datatype(length);
(you can remove the backticks if it doesn't work)
1
RENAME TABLE old_table_name TO new_table_name;
					or
ALTER TABLE old_table_name RENAME TO new_table_name; 
					or
ALTER TABLE old_table_name RENAME new_table_name;                 
1
ALTER TABLE table_name CHANGE old_column_name new_column_name datatype(length);
1
alter table product change price price_kg float;
1

New to Communities?

Join the community