How to use the LIMIT argument in an SQLite Query with Android

Order by id DESC Limit 1:

db.query("table", null, "column=?", new String[]{"value"}, null, null, "id DESC", "1");

Leave a Comment