1

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

marc_s
  • 732,580
  • 175
  • 1,330
  • 1,459
mrmut
  • 484
  • 5
  • 18

0 Answers0