This question already has an answer here:
- How to get last insert Id in SQLite? 4 answers
Get the specific primary key, just after inserting row into SQLite, using PHP.
I use PDO prepare-execute, and am not sure how to acchieve this in simplest way.
Should I do a querry just after inserting, something like:
SELECT ID FROM TableX WHERE Data = $data
Thanks
Aucun commentaire:
Enregistrer un commentaire