|
PHP5中文手册
mysqli_multi_querymysqli->multi_query()(PHP 5) mysqli->multi_query() — Performs a query on the database 说明Procedural style:
bool mysqli_multi_query
( mysqli $link
, string $query
)
Object oriented style (method): mysqli
bool multi_query
( string $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_more_results() and mysqli_next_result(). 参数
返回值Returns FALSE if the first statement failed. To retrieve subsequent errors from other statements you have to call mysqli_next_result() first. 范例Example#1 Object oriented style
<?php Example#2 Procedural style
<?php 上例的输出类似于:
|