search

Home  >  Q&A  >  body text

怎么写mysql insert into select循环语句

大家讲道理大家讲道理2786 days ago683

reply all(3)I'll reply

  • PHP中文网

    PHP中文网2017-04-17 15:56:48

    This can only be done using a cursor, or a loop like PHP

    reply
    0
  • 巴扎黑

    巴扎黑2017-04-17 15:56:48

    If you use python, you can use executemany, refer to http://dev.mysql.com/doc/conn...

    But the amount of data you have is not very large, so it doesn’t matter if you use for to traverse the insert

    reply
    0
  • PHP中文网

    PHP中文网2017-04-17 15:56:48

    Write a stored procedure and use a loop to do it. . You can pass the first character array to the stored procedure. . .

    reply
    0
  • Cancelreply