SELECT LAST_INSERT_ID()
取這條記錄的id(此id是AUTO_INCREMENT)
當時第一反應會不會有線程安全的問題
查看MySQL文檔 [url]http://dev.mysql.com/doc/refman/5.0/en/information-functions.html#function_last-insert-id[/url]
其中
The ID that was generated is maintained in the server on a per-connection basis
說明是線程安全的