Android – SQLiteDatabase.query

Android – SQLiteDatabase.query

query method gives you access to the data of a SQLiteDatabase. You specify what you want to return from a table, it is like SQL select, and it returns back a Cursor. You can specify table name, columns, selection, groupBy, having, orderBy and limit. The syntax is: Cursor provides access to the query results and allows us to go through the results row by row. The cursor maintains a position and we should position it to a specific row, also in the beginning using moveToNext. Some other methods are: moveToPrevious,…

Android – SQLiteDatabase.query Read More