如何在内容提供程序中执行此sql,如下所示:
update dtrips set dtp_day_idx=dtp_day_idx+2 where tp_id=1
任何人都可以帮我修复代码
DTrip dTrip = new DTrip();
ContentValues values = createContentValues(dTrip);
values.put("dtp_day_idx" ,...);
String select ="tp_id="+tripId;
mContentResolver.update(UsersColumns.CONTENT_URI, values, select, null);
感谢。