user3203425
user3203425

Reputation: 3059

How to use LIMIT with SQLiteDatabase.query()?

What's the syntax for using a LIMIT clause with SQLiteDatabase.query()?:

http://developer.android.com/reference/android/database/sqlite/SQLiteDatabase.html#query(java.lang.String, java.lang.String[], java.lang.String, java.lang.String[], java.lang.String, java.lang.String, java.lang.String, java.lang.String)

is it:

  1. "N"
  2. "LIMIT N"
  3. other?

the docs don't say, and other posts are confusing on the subject.

Thank you

Upvotes: 0

Views: 551

Answers (1)

Marco Acierno
Marco Acierno

Reputation: 14847

LIMIT is append by Android. So it will be N or N, K if you need.

Upvotes: 1

Related Questions