search

Home  >  Q&A  >  body text

How to insert multiple pieces of data in PHP

Can I use this function? Is the mysqli_multi_query() function implemented?

大叔大叔2482 days ago820

reply all(3)I'll reply

  • 潇寒

    潇寒2018-11-26 15:13:17

    Use native sql to splice the value you want to insert into a string, and then put the string you spliced ​​together with sql

    This is very fast


    reply
    0
  • PHP中文网

    PHP中文网2018-05-02 10:33:36

    Yes, there are many ways. You can also insert in a loop

    reply
    0
  • 大叔

    I have solved this problem, thank you for your reply!

    大叔 · 2018-05-02 10:34:33
    MrSwan

    Does loop insertion require multiple mysql accesses? Will the efficiency be too low?

    MrSwan · 2018-05-04 12:47:57
  • Cancelreply