I m Connecting to mysql using c#.I want to get last inserted id.I want to use that last inserted id+1 when next time i will run application..
But whenever i will run my application get id 1 everytime..
Thanks..
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
Jignesh TrivediRank #16 · 50.3K reputationPosted Sep 27, 2013, 2:56 AM EDT
hi,
how you get last inserted id from table?
i thing LAST_INSERT_ID() function can help you on same
Please refer
http://dev.mysql.com/doc/refman/5.0/en/information-functions.html#function_last-insert-id
hope this will help you.