How retrieve data from SQLite database Android and display it in a table?

Thành Đạt

New member
How retrieve data from SQLite database Android and display it in a table?
Answer
We can retrieve anything from database using an object of the Cursor class. We will call a method of this class called
rawQuery and it will return a resultset with the cursor pointing to the table. We can move the cursor forward and retrieve the data. This method return the total number of columns of the table.
 

Tìm kiếm

Back
Top