search

Home  >  Q&A  >  body text

Insertion failed

No error is reported after execution, but it always displays "Failed, the ID inserted by the current user is 0"

P粉500773388P粉500773388562 days ago854

reply all(2)I'll reply

  • phpcn牛

    phpcn牛2023-05-10 18:26:13

    Check whether the database primary key setting is auto-increment. If not, set it to yes

    reply
    0
  • P粉500773388

    Solved, thank you! There is no primary key set in the table creation code provided before, and there is no auto-increment.

    P粉500773388 · 2023-05-11 11:21:37
  • Cancelreply