I have a problem with an SQL query.
I use Visual Studio 2015 to test my website, and WebMatrix.Data.Database to do my queries.
Anyways, I am creating a reply system and I use this query to get the replies :
SELECT *
FROM ThreadReply
WHERE ThreadId = " + ThreadId + "
ORDER BY ReplyId DESC
I know there is no prevention against SQL injections so please don't ask me to fix that.
Want I want to add the the query is to start from a certain row and continue for a certain amount of rows, for example; I mean like the LIMIT command where you can select the rows you want to start at but apparently it doesn't work on Visual Studio.
Also, please note, I want the row from the query with the rows that have the WHERE
keyword true, so not the row of the actual table.