postgresql

PostgreSQL Last Insert ID Not Working With PDO

November 5, 2015 by

If you are using PostgreSQL with PHP’s PDO for database connectivity, you might have experienced that the lastInsertId method on the database handler returns FALSE after inserting a row into the database. This can cause a lot of frustration, and this is one of the scenarios where PDO is not so database vendor independent. For… read more