正在加载图片...
List<String> queryTable()( <String> players new ArrayList<String>O) DaHee access to the database er myDBHelper 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)( 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 o return players Cursor Cursor Cursor Cursor Cursor Cursor Cursor 4848 Cursor Cursor Cursor Cursor Cursor Cursor Cursor
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有