How to retrieve the last row of a table which doesn’t has any unique id like
select * from sample where id=(select max(id) from sample)
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.
There must be some sort (ORDER BY) criteria to define the last row, otherwise your request makes no sense. For example, the last row based on
AddedDateTimecolumn in theproducttable