Home >Backend Development >PHP Tutorial >PHP在数据库插入记录后获取自增列ID,该怎么处理

PHP在数据库插入记录后获取自增列ID,该怎么处理

WBOY
WBOYOriginal
2016-06-13 10:20:121831browse

PHP在数据库插入记录后获取自增列ID
在PHP中,往ORACLE插入一条新记录后获取该表自增列的ID
请问能实现吗
能实现的话如何实现
请大家指点一下

------解决方案--------------------
参考下这篇文章,返回insert语句产生的id。
------解决方案--------------------

探讨
$select="select last_insert_id() ";来获取
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