ALTER TABLE user ADD COLUMN tel CHAR(11) AFTER wechat; #添加列 ALTER table customer modify column password varchar(200); #修改列类型 ALTER TABLE user ALTER COLUMN status SET DEFAULT 1; #设置默认值 ALTER TABLE user MODIFY column emp_id TIMESTAMP DEFAULT NULL;#可以为空; 不为空NOT NULL
标签:DEFAULT,表字,COLUMN,user,sql,202311141210,TABLE,NULL,ALTER From: https://www.cnblogs.com/beesky520/p/17831326.html