|
PHP5中文手册
mysqli_killmysqli->kill()(PHP 5) mysqli->kill() — Asks the server to kill a MySQL thread 说明Procedural style:
bool mysqli_kill
( mysqli $link
, int $processid
)
Object oriented style (method) mysqli
bool kill
( int $processid
)
This function is used to ask the server to kill a MySQL thread specified by the processid parameter. This value must be retrieved by calling the mysqli_thread_id() function. To stop a running query you should use the SQL command KILL QUERY processid. 返回值如果成功则返回 TRUE,失败则返回 FALSE。 范例Example#1 Object oriented style
<?php Example#2 Procedural style
<?php 上例将输出:
|