简体   繁体   中英

Insert into breaking alter table statement

For some reason, my insert into statement seems to be stopping my alter table statement from running. When I delete it the column is added, but when I add it back it says the column hasn't been added.

code below:

ALTER TABLE MODEL 
ADD MOD_WAIT_CHG INT(11) 

INSERT INTO MODEL (MOD_WAIT_CHG) 
VALUES (100);  

i think you forgot a semi comma

ALTER TABLE MODEL ADD MOD_WAIT_CHG INT(11);

INSERT INTO MODEL (MOD_WAIT_CHG) VALUES (100);

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM