1.重置某个字段的默认值:
ALTER TABLE t_sys_user ALTER COLUMN creater_time
DROP DEFAULT;
ALTER TABLE t_sys_user ALTER COLUMN creater_time
SET DEFAULT CURRENT_TIMESTAMP;
2.重置自增字段的值:
ALTER TABLE t_sys_user AUTO_INCREMENT = 36;
1.重置某个字段的默认值:
ALTER TABLE t_sys_user ALTER COLUMN creater_time
DROP DEFAULT;
ALTER TABLE t_sys_user ALTER COLUMN creater_time
SET DEFAULT CURRENT_TIMESTAMP;
2.重置自增字段的值:
ALTER TABLE t_sys_user AUTO_INCREMENT = 36;