Why is an error returned?
nearest2017-07-25 13:58:14
INSERT INTO myuser VALUES('','mijueshitai','123456',86,'meijie@qq.com','emeishan');
辕天2017-07-24 23:13:17
Check the ID to see if it grows automatically. If it grows automatically, you don’t need to write this column when writing data, that is:
INSERT INTO myuser(NAME,PWD,AGE,EMAIL,ADDR) VALUES('mijueshitai','123456',86,'meijie@qq.com','emeishan'); 另外在数据表设计的时候,尽量别使用数据库的一些关键字,如NAME。
ringa_lee2017-07-15 22:17:00
The value inserted is wrong. The id should be the primary key, not NULL!