1
0
mirror of https://github.com/php/doc-en.git synced 2026-03-24 07:42:10 +01:00

Clarify how multi_query works (#5380)

This commit is contained in:
Kamil Tekiela
2026-02-18 22:58:14 +00:00
committed by GitHub
parent 88eb0d53c6
commit 1beae37b69

View File

@@ -25,12 +25,11 @@
</para>
&mysqli.sqlinjection.warning;
<para>
Queries are sent asynchronously in a single call to the database, but the
database processes them sequentially.
Queries are sent in a single call to the database and processed sequentially.
<methodname>mysqli_multi_query</methodname> waits for the first query to
complete before returning control to PHP. The MySQL server will then process
the next query in the sequence. Once the next result is ready, MySQL will wait
for the next execution of <function>mysqli_next_result</function> from PHP.
complete before returning control to PHP. In the meantime, the MySQL server
will continue processing the remaining queries asynchronously of PHP and make
the results available for fetching.
</para>
<para>
It is recommended to use