Is there an equivalent for MySQL's “multi_query()” in PDO?

前端 未结 1 962
别那么骄傲
别那么骄傲 2021-01-27 13:52

I like assembling multiple SQL queries into one string and executing them simultaneously to ensure that they are executed atomically. I can\'t seem to do this with PDO like I co

相关标签:
1条回答
  • 2021-01-27 14:15

    Sending at once multiple queries to the MySQL server - won't make them atomic. For atomicity, use transactions. Read: ACID @ wikipedia

    0 讨论(0)
提交回复
热议问题