Order by id DESC Limit 1
:
db.query("table", null, "column=?", new String[]{"value"}, null, null, "id DESC", "1");
More Related Contents:
- How to use MS SQL as database for Android Studio
- Best way to work with dates in Android SQLite [closed]
- Android Push Notification (GCM), is there any Daily Limit?
- How to split comma-separated value in SQLite?
- Cursor size limit in Android SQLiteDatabase
- Is there any limit of bundle in Android?
- Android SQLite: Update Statement
- Could not allocate CursorWindow
- android, how to exec a sql file in sqlitedatabase
- Queries with prepared statements in Android?
- How to view SQL database in Eclipse Debug mode for android
- sqlite insert into table select * from
- SQLite Foreign Key
- Are there any good Android tutorials for launching applications?
- Firebase onMessageReceived not called when app in background
- How to detect when WIFI Connection has been established in Android?
- How to get city name from latitude and longitude coordinates in Google Maps?
- How to trigger broadcast receiver when gps is turn on/off?
- No App Icon on ActionBar
- Fragments in Android 2.2.1, 2.3, 2.0. Is this possible?
- Rotating phone quickly 180 degrees, camera preview turns upside down
- upload video to facebook in android
- Drag and drop items in RecyclerView with GridLayoutManager
- How to replicate android:editable=”false” in code?
- How to upload file using Volley library in android?
- How Do We Distinguish Never-Asked From Stop-Asking in Android M’s Runtime Permissions?
- get latitude and longitude with geocoder and android Google Maps API v2
- Getting Error “Gradle DSL method not found: ‘compile()'” when Syncing Build.Gradle
- is there a maximum size to android internal storage allocated for an app?
- Cannot find R.layout.activity_main