添加列
 ALTER TABLE  HR_USER ADD COLUMN UPT_TIME datetime   DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP comment '修改时间' AFTER ID;
修改列
ALTER TABLE  HR_USER CHANGE UPT_TIME UPT_TIME datetime   DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP  comment '修改时间' AFTER ID;


最前位置
 ALTER TABLE  HR_USER ADD COLUMN UPT_TIME datetime   DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP comment '修改时间' FIRST;


修改列位置

ALTER TABLE `erp`.`sd_contract_bom_material` 
MODIFY COLUMN `MATERIAL_CODE` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '物料编号' AFTER `MATERIAL_ID`,
MODIFY COLUMN `MATERIAL_NO` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '物料货号' AFTER `MATERIAL_CODE`,


删除列

ALTER TABLE HR_USER DROP COLUMN NAME;