last_insert_id()函數使用的注意事項 mysql

本文轉載自:http://blog.csdn.net/slvher/article/details/42298355html author:slvhermysql    在使用MySQL時,若表中含自增字段(auto_increment類型),則向表中insert一條記錄後,能夠調用last_insert_id()來得到最近insert的那行記錄的自增字段值(一個bigint類型的64-bit值)
相關文章
相關標籤/搜索