From 4c0b87584e221b45e7ef8ccba541a264251f7c22 Mon Sep 17 00:00:00 2001 From: Stanislav Malyshev Date: Thu, 13 May 2004 14:32:21 +0000 Subject: [PATCH] document sqlite_query behaviour git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@158498 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/sqlite/functions/sqlite-query.xml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/reference/sqlite/functions/sqlite-query.xml b/reference/sqlite/functions/sqlite-query.xml index 4e58eb7e85..606c2b58cf 100644 --- a/reference/sqlite/functions/sqlite-query.xml +++ b/reference/sqlite/functions/sqlite-query.xml @@ -1,5 +1,5 @@ - + sqlite_query @@ -60,7 +60,11 @@ SQLite will execute multiple queries separated by semicolons, so you can use it to execute a batch of SQL that you have - loaded from a file or have embedded in a script. + loaded from a file or have embedded in a script. However, this works only + when the result of the function is not used - if it is used, + only the first SQL statement would be executed. Function + sqlite_exec will always execute multiple SQL + statements. When executing multiple queries, the return value of this function