note 91669 added to function.mysql-query
| From: | StratsimirKolchevski at osu1 dot php dot net | Date: | Mon, 22 Jun 2009 12:51:51 +0000 |
| Subject: | note 91669 added to function.mysql-query | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-157230@lists.php.net to get a copy of this message | ||
The documentation claims that "multiple queries are not supported".
However, multiple queries seem to be supported. You just have to pass flag 65536 as
mysql_connect's 5 parameter (client_flags). This value is defined in
/usr/include/mysql/mysql_com.h:
#define CLIENT_MULTI_STATEMENTS (1UL << 16) /* Enable/disable multi-stmt support */
Executed with multiple queries at once, the mysql_query function will return a result only for the
first query. The other queries will be executed as well, but you won't have a result for them.
----
Server IP: 89.190.194.18
Probable Submitter: 88.203.210.121
----
Manual Page -- http://www.php.net/manual/en/function.mysql-query.php
Edit -- https://master.php.net/note/edit/91669
Del: integrated -- https://master.php.net/note/delete/91669/integrated
Del: useless -- https://master.php.net/note/delete/91669/useless
Del: bad code -- https://master.php.net/note/delete/91669/bad+code
Del: spam -- https://master.php.net/note/delete/91669/spam
Del: non-english -- https://master.php.net/note/delete/91669/non-english
Del: in docs -- https://master.php.net/note/delete/91669/in+docs
Del: other reasons-- https://master.php.net/note/delete/91669
Reject -- https://master.php.net/note/reject/91669
Search -- https://master.php.net/manage/user-notes.php