【发布时间】:2014-07-01 12:48:19
【问题描述】:
选择语句的大小是否有限制? 例如,假设我有 100 个失败的学生作为选择,我下面的代码可以工作吗?
ArrayList<Long> ids_toupdate = getFailedStudents();// has size 100.
String selection = String.format(Locale.US, STUDENT._ID + " IN (%s)",TextUtils.join(", ", ids_toupdate));
ContentValues cv = new ContentValues();
cv.put(RawContacts.FAILED, 1);
getContentResolver().update(STUDENT.CONTENT_URI,cv, selection, null);
【问题讨论】:
-
请注意,由于 the standard 于 2010 年被放弃,供应商可以在 webSQL(这是事实上的 SQLite 实现)中设置自己的未记录限制(或完全放弃支持)。