Computer Science, asked by abhishekchaugai4264, 1 year ago

How to rename a column in an existing MySQL table?

Answers

Answered by omegads04
0

ALTER TABLE "table_name" Change "column 1" "column 2" ["Data Type"];

ALTER TABLE "table_name" RENAME COLUMN "column 1" TO "column 2";

ALTER TABLE Customer CHANGE Address Addr char(50);

ALTER TABLE Customer RENAME COLUMN Address TO Addr;

Similar questions