PHP obtains the ID of the auto-increment column after inserting a record in the database. how can this problem be solved?

Source: Internet
Author: User
PHP obtains the auto-increment column ID after inserting a record in the database. in PHP, insert a new record to ORACLE and obtain the ID of the auto-incrementing column in the table. can this problem be achieved? for more information, see the following article to return the id generated by the insert statement ., $ Select = & quot; selectlast PHP obtains the auto-incrementing column ID after inserting a record in the database
In PHP, insert a new record to ORACLE and obtain the ID of the auto-increment column of the table.
Can it be implemented?
How can we achieve this?
Please give me some advice

------ Solution --------------------
Refer to the following article to return the id generated by the insert statement.
------ Solution --------------------
Discussion
$ Select = "select last_insert_id ()";

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.