String slctsummary = "select Reminder_Id,Reminder_Type,Reminder_Date,Reminder_Time,Reminder_Alert from Reminder_Main where Car_ID="
+summaryid
+"AND"
+Reminder_Date
+"="
+currentdate1;
Cursor c = sdb.rawQuery(slctsummary,null);
我想要所有滿足條件但通過錯誤的記錄。 PLZ幫我出COM部份 日Thnx的...android中的多個where子句
日誌貓錯誤........
> 12-17 11:48:05.250: E/AndroidRuntime(1245):
> java.lang.RuntimeException: Unable to start activity
>ComponentInfo{com.curious.solutions.finalautoistdiary/com.curious.solutions.finalautoistdiary.ReminderSummary}:
> android.database.sqlite.SQLiteException: unrecognized token:
> "1ANDReminder_Date17": , while compiling: select
> Reminder_Id,Reminder_Type,Reminder_Date,Reminder_Time,Reminder_Alert
> from Reminder_Main where Car_ID=1ANDReminder_Date17-NOV-2012
同樣的錯誤被repetd,reminder_id應該匹配summaryid和reminder_date應符合currentdate1 – pitambar
放空間1之間「與」和提醒 –