android.database.sqlite.SQLiteException:没有这样的列:data_id(代码1):

时间:2014-09-24 17:22:06

标签: android sqlite

当我尝试从Android手机查询CallLog数据时,我收到以下错误。 android.database.sqlite.SQLiteException:没有这样的列:data_id(代码1):,编译时:SELECT CallsStat_id,ip_prefix,numberlabel,matched_number,type,date,contactid,statNew,lookup_uri,moduletype,_id,name, normalized_number,ring_count,photo_id,formatted_number,number,geocoded_location,countryiso,data_id,numbertype,new,duration,simid,isprivate,voicemail_uri,is_read,raw_contact_id,vtcall FROM calls_restrict_view ORDER BY duration DESC。但是,查询工作正常一些Android手机。这是我的代码。Cursor managedCursor = activity.getContentResolver().query(CallLog.Calls.CONTENT_URI, null, null, null,CallLog.Calls.DURATION + " " + sorting);

0 个答案:

没有答案