Home  >  Q&A  >  body text

Please help me find out where I made the mistake. Thank you for your careful answer.

Why is an error returned?

猎鹰猎鹰2624 days ago1241

reply all(4)I'll reply

  • nearest

    nearest2017-07-25 13:58:14

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


    reply
    0
  • 辕天

    辕天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。

    reply
    0
  • Ailon

    Ailon2017-07-18 10:04:51

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

    reply
    0
  • ringa_lee

    ringa_lee2017-07-15 22:17:00

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

    reply
    0
  • Cancelreply