DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 

(mysql.info.gz) mysql_thread_id

Info Catalog (mysql.info.gz) mysql_store_result (mysql.info.gz) C API functions (mysql.info.gz) mysql_use_result
 
 22.2.3.59 `mysql_thread_id()'
 .............................
 
 `unsigned long mysql_thread_id(MYSQL *mysql)'
 
 Description
 ...........
 
 Returns the thread ID of the current connection.  This value can be
 used as an argument to `mysql_kill()' to kill the thread.
 
 If the connection is lost and you reconnect with `mysql_ping()', the
 thread ID will change.  This means you should not get the thread ID and
 store it for later. You should get it when you need it.
 
 Return Values
 .............
 
 The thread ID of the current connection.
 
 Errors
 ......
 
 None.
 
Info Catalog (mysql.info.gz) mysql_store_result (mysql.info.gz) C API functions (mysql.info.gz) mysql_use_result
automatically generated byinfo2html