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

WBOY
Release: 2016-06-13 10:20:12
Original
1800 people have browsed it

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

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

探讨
$select="select last_insert_id() ";来获取
Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template