Home  >  Article  >  Backend Development  >  thinkphp写下一条数据,同时取得这条数据的ID

thinkphp写下一条数据,同时取得这条数据的ID

WBOY
WBOYOriginal
2016-06-13 11:47:141377browse

thinkphp写入一条数据,同时取得这条数据的ID
thinkphp写入一条数据,同时取得这条数据的ID,怎么做?做的话一般都是根据ID查询,或者模糊查询。怎样取得写入的那条数据的id? 
------解决方案--------------------
lastInsID 属性

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn