search

Home  >  Q&A  >  body text

Insert multiple statements into the database

The teacher asked to make an exam arrangement system, select the course name, time, location and multiple student IDs, and insert them into the database at the same time. We are not professional in writing code, so we really can’t figure it out. Please help me, please help me. It crashed after making it...

Ettie MaoEttie Mao2497 days ago1097

reply all(2)I'll reply

  • 凌波漫步

    凌波漫步2018-01-30 20:32:58

    Teacher Peter-Zhu’s answer is correct, that’s it

    reply
    1
  • 天蓬老师

    天蓬老师2018-01-14 12:25:06

    You can use: INSERT data table (field list) VALUES (value list 1), (value list 2), (value list 3)..., of course, you can also INSERT table name SET field = value, which is more efficient. some.

    reply
    3
  • Cancelreply