I\'m trying to fetch the last inserted row Id of a Sqlite DB in my PHP application. I\'m using Zend Framework\'s PDO Sqlite adapter for database handling. the lastInsertId()
Hey, try this query. But I don't know about PHP.
SELECT * FROM tablename WHERE id = (SELECT COUNT(*) FROM tablename);