mysql 增加一列

ALTER TABLE `test`.`new table`
MODIFY COLUMN `username` VARCHAR(45) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL,
MODIFY COLUMN `password` VARCHAR(45) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL,
ADD COLUMN `tel` VARCHAR(45) AFTER `password`;

你可能感兴趣的:(mysql 增加一列)