Answer the question
In order to leave comments, you need to log in
MS SQL Server how to pull the last row correctly?
Hello,
I just started working with MSSQL Server, I need to pull out the last record in the query, I do it like this:
SELECT text FROM table WHERE user_id=5 ORDER BY id DESC LIMIT 1
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question