This is my table.
Ticket(id int auto_increment,name varchar(50));
after inserting into this table i want send id and name to mail..
how can i get the last Inserted value.
help to solve this…
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Look into: Scope_identity
The table which is having Identity Property from that table we can get the last inserted record id will be like this
OR
But this is not a safe technique:
OR
This is also not a safe technique: