1 指定位置
Cursor c = db.query("capitals",new String[] {"prefecture"},null,null);
c.moveToFirst(); CharSequence[] list = new CharSequence[c.getCount()]; for (int i = 0; i < list.length; i++) { list[i] = c.getString(0); c.moveToNext(); } c.close();原文链接:https://www.f2er.com/sqlite/202833.html