Communiquez avec les autres et partagez vos connaissances professionnelles

Inscrivez-vous ou connectez-vous pour rejoindre votre communauté professionnelle.

Suivre

How can we find out which auto increment was assigned on Last insert?

user-image
Question ajoutée par Julfkar Moh Umar , Sr. Software Engineer , Aakash Edutech Private Limited
Date de publication: 2016/01/14
Jargam Abbas Sayyed Mohammad Azam
par Jargam Abbas Sayyed Mohammad Azam , Sr. Technical Specialist , Samco Securities Limited

Use LAST_INSERT_ID() from your SQL query or you can also use mysql_insert_id() to get it using PHP.

 

LAST_INSERT_ID() can be used to fetch latest auto increment id being used in any INSERT query that was just got executed.

More Questions Like This