We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

How to multi_query with Phalcon like using mysqli_multi_query?

With mysqli, we can use mysqli_multi_query to executes one or multiple queries which are concatenated by a semicolon.

Could we do that with phalcon?



32.2k
Accepted
answer

We don't have support mysqli but you can create one for you

Good luck



6.0k

Thank you

edited Aug '19

A bit late: what you can do is integrate the multiple queries in a single store procedure that returns the OUT variable in a "SELECT". Then you just call it as usual from Phalcon.