(PHP 4 >= 4.3.0, PHP 5)
mysql_thread_id — 锟斤拷锟截碉拷前锟竭程碉拷 ID
$link_identifier
] ) : intmysql_thread_id() 锟斤拷锟截碉拷前锟竭程碉拷 ID锟斤拷锟斤拷锟斤拷锟斤拷佣锟绞э拷瞬锟斤拷锟� mysql_ping() 锟斤拷锟斤拷锟斤拷锟斤拷锟较o拷锟竭筹拷 ID 锟斤拷谋洹o拷锟斤拷锟轿讹拷挪锟斤拷锟饺★拷锟斤拷叱痰锟� ID 锟襟保达拷锟斤拷锟斤拷锟斤拷锟矫★拷锟斤拷锟斤拷要锟斤拷时锟斤拷锟斤拷去锟斤拷取之锟斤拷
Example #1 mysql_thread_id() 锟斤拷锟斤拷
<?php
$link = mysql_connect('localhost', 'mysql_user', 'mysql_password');
$thread_id = mysql_thread_id($link);
if ($thread_id){
printf ("current thread id is %d\n", $thread_id);
}
?>
锟斤拷锟斤拷锟斤拷锟接斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟�
current thread id is 73
锟轿硷拷 mysql_ping() 锟斤拷 mysql_list_processes()锟斤拷