PHP. Руководство по PHP. 2005
mysqli_multi_query
mysqli_multi_query
(PHP 5)mysqli_multi_query
(no version information, might be only in CVS)mysqli->multi_query -- Performs a query on the database
Description
Procedural style:bool mysqli_multi_query (mysqli link, string query)
Object oriented style (method):class mysqli {
bool multi_query (string query)
}
The mysqli_multi_query() executes one or multiple queries
which are concatenated by a semicolon.
To retrieve the resultset from the first query you can use
mysqli_use_result() or mysqli_store_result().
All subsequent query results can be processed using
Возвращаемые значения
mysqli_multi_query() only returns FALSE if the first statement failed.
To retrieve subsequent errors from other statements you have to call
mysqli_next_result() first.
Примеры
Пример 2. Procedural style
|
Результат выполнения данного примера:
my_user@localhost |
mysqli_more_results
mysqli_next_result