您应该查看此https://dev.mysql.com/doc/refman/5.7/en/alter- table.html
对于您的情况,它将类似于
ALTER TABLE NAMEYOURTABLE ADD COLUMN tempID int NULL DEFAULT 3;
如何在mysql中使用alter添加列?
您应该查看此https://dev.mysql.com/doc/refman/5.7/en/alter- table.html
对于您的情况,它将类似于
ALTER TABLE NAMEYOURTABLE ADD COLUMN tempID int NULL DEFAULT 3;