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.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Jignesh TrivediPosted Sep 27, 2013, 6:56 AM
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.