【发布时间】:2016-08-31 06:38:33
【问题描述】:
我有一个查询,它在 android sqlite 中从数据库表规则中填充光标。
当我在光标上使用 getcount 时,它会显示 24,这意味着光标中有 24 行。我想要的是光标内的所有数据都应该复制到多维数组或数组列表中,或者换句话说,将数据库表的副本复制到数组列表中。
c = obj_db.rawQuery("select * from rules", null);
int count=c.getCount();
String x= String.valueOf(count);
简而言之,我想要数组列表中的表中的数据副本
【问题讨论】:
标签: android sqlite arraylist android-sqlite android-cursor