Ubah Nama Kolom Baris Perintah MySQL
ALTER TABLE `members` CHANGE COLUMN `full_names` `fullname` varchar(100) NOT NULL;
Avenger
ALTER TABLE `members` CHANGE COLUMN `full_names` `fullname` varchar(100) NOT NULL;
alter table product change price price_kg float;
ALTER TABLE tableName CHANGE `oldcolname` `newcolname` datatype(length);
(you can remove the backticks if it doesn't work)
sp_rename 'table_name.old_column', 'new_name', 'COLUMN';