开发者

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

开发者 https://www.devze.com 2023-03-23 14:21 出处:网络
I like assembling multiple SQL queries into one string and executing them sim开发者_StackOverflowultaneously to ensure that they are executed atomically. I can\'t seem to do this with PDO like I could

I like assembling multiple SQL queries into one string and executing them sim开发者_StackOverflowultaneously to ensure that they are executed atomically. I can't seem to do this with PDO like I could with the MySQL functions though.

Any thoughts?


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

0

精彩评论

暂无评论...
验证码 换一张
取 消