正在加载图片...
Query Table public List<String> queryTableo i List<string> players new ArrayList<string> // Get access to the database DBHelper my DBHelper new DBHelper(this); SQLiteDatabase db =my DBHelper. getReadableDatabaseo // Query the specified table Cursor cursor= db query( TABLE NAME, allColumns, null, null, null, null, null); // Retrieve the data While(cursor move ToNexto)i int id cursor getInt(cursor. get ColumnIndex("id") String name cursor getString(cursor. getColumnIndex("name") String score cursor getString(cursor. getColumnIndex("score") players. add (id +": the player name +" has got a score of t score return players 47Query Table 47
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有