Android Question sqlite BETWEEN

Almora

Well-Known Member
Licensed User
Longtime User
hi..
I want to get values in range of numbers but no results. where am i doing wrong?
thanks..

Dim cur As Cursor = Main.data.ExecQuery("SELECT * FROM day WHERE BETWEEN ID=10 AND ID=21 ")

android.database.sqlite.SQLiteException: near "BETWEEN": syntax error (code 1): , while compiling: SELECT * FROM day WHERE BETWEEN ID=10 AND ID=21
what I want here is to get values in the range of 10 and 21. Including 10 and 21.
 
Last edited:

Mahares

Expert
Licensed User
Longtime User
Upvote 0
Solution
Top