I’m trying to use the statement SELECT TOP 1 * FROM tasks WHERE dueDate < ?1 ORDER BY dueDate DESC but SQLite says near "1": syntax error. What’s wrong?
I’m trying to use the statement SELECT TOP 1 * FROM tasks WHERE dueDate
Share
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.
Use
LIMIT 1at the end of the query instead ofTOP 1(which isn’t valid sqlite syntax).You might also need to remove the
?indueDate < ?1, but I don’t know sqlite well enough to be sure.