---------- Forwarded message ----------
From:
Kuberan Marimuthu <kuberanm...@gmail.com>
Date: Sun, Apr 25, 2010 at 1:54 AM
Subject: A question mysql_insertid()
To:
professi...@googlegroups.comHi,
This is my requirement:
I have table that has an auto-increment field and once I do an insert into the table from PHP, I need to get the generated auto-increment field. I tried googling solution for this problem and found that mysql_insertid() is the solution for it. My doubt is for a database that has a very high level of concurrency, is it not possible for the auto_increment value to be advanced between the INSERT QUERY and the my_insertid() call in PHP. Is so what is the perfect solution to this problem?
regards,
kuberan