search

Home  >  Q&A  >  body text

Does anyone know how to modify data in multiple rows and columns in MySql? Please give me some advice.

Which master knows how to modify data in multiple rows and columns in MySql

天蓬老师天蓬老师2729 days ago764

reply all(5)I'll reply

  • PHP中文网

    PHP中文网2017-06-06 09:53:59

    I don’t know the table structure, so I can’t provide a targeted solution, but one method is stored procedures, but one disadvantage is that it affects the performance of mysql. When the number of operations is not particularly large, the impact is not big, but when the operations are very frequent, There may be an impact.

    reply
    0
  • ringa_lee

    ringa_lee2017-06-06 09:53:59

    Look for common conditions and where conditions to perform batch up operations

    reply
    0
  • ringa_lee

    ringa_lee2017-06-06 09:53:59

    Deleted and re-inserted (escape...

    reply
    0
  • PHPz

    PHPz2017-06-06 09:53:59

    At least provide your table structure, otherwise how will others see it?

    reply
    0
  • 天蓬老师

    天蓬老师2017-06-06 09:53:59

    Solved, just use a loop

    reply
    0
  • Cancelreply