Search code examples
phppostgresqladodb-php

Using Adodb for php/postgresql, return row ID after insert


When I insert a row, it increments the ID field using SERIAL.

How can I return the newly created ID number right after the insert?

(Database is Postgresql.)


Solution

  • $db->Insert_ID();