Click here to Skip to main content
16,021,172 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello ,
I Have Problem of retrieving Auto-incremented Primary Key Value after Insertion...
Can not Use MAX because if during the retrieving two or more results are inserted then it will returns false value..


For Example I Use Following Query :
SQL
INSERT INTO OrderDetail (OrderName, OrderAddress, OrderCity, OrderState, OrderCountry, OrderPincode, OrderContact1, OrderContact2, OrderEmailid, Cost, Total)Values (......)


Then I Want to Retrieve The OrderID which is Primary Key and also auto-increment in table OrderDetail


So please help me...
Posted
Comments
Zoltán Zörgő 15-Feb-13 13:06pm    
Any progress?

1 solution

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900