Get the specific primary key, just after inserting row into SQLite, using PHP.
I use PDO prepare-execute, and am not sure how to achieve this in simplest way.
Should I do a query just after inserting, something like:
SELECT ID
FROM TableX
WHERE Data = $data
Thanks