Please help me find out where I made the mistake. Thank you for your careful answer.
猎鹰
猎鹰 2017-07-15 21:14:20
0
4
1217

Why is an error returned?

猎鹰
猎鹰

reply all (4)
nearest
INSERT INTO myuser VALUES('','mijueshitai','123456',86,'meijie@qq.com','emeishan');


    辕天

    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。
      Ailon

      Look at your table structure, the data type may be wrong

        ringa_lee

        The value inserted is wrong. The id should be the primary key, not NULL!

          Latest Downloads
          More>
          Web Effects
          Website Source Code
          Website Materials
          Front End Template
          About us Disclaimer Sitemap
          php.cn:Public welfare online PHP training,Help PHP learners grow quickly!