Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,838 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hello,
I am developing an application in C# with WinForms using SQLite as a database.
The problem, is that I realize that some SQL queries do not work with SQLite.
For example, the SQL commands below do not work with SQLite.
SELECT TOP 50 * FROM Movies ORDER BY MoviesId;
SELECT TOP 100 * FROM Movies WHERE MoviesId NOT IN (SELECT TOP 50 MoviesId FROM Movies ORDER BY MoviesId);
Do you have a variant of these SQL queries that works under SQLite, please?
Thanks.
Try these queries:
SELECT * FROM Movies ORDER BY MoviesId LIMIT 50
SELECT * FROM Movies ORDER BY MoviesId LIMIT 50 OFFSET 50
SELECT * FROM Movies ORDER BY MoviesId LIMIT 50 OFFSET 100