Hi,

Can you tell me, if I use persistent MySQL connection (with Apache::DBI), if I want to use select last_insert_id(), do I need to lock the table before doing the insert and unlock it after using the last_insert_id()?

I don't know what could happen if another user of the application makes another insert right after I do the same thing. I am afraid that it could return its last inserted ID and not mine.

Thank you.

Octavian

Reply via email to