2012-09-27 63 views
-1

我不斷收到以下錯誤,我想不通爲什麼:我的SQLite語句有什麼問題?我不斷收到一個語法錯誤

09-26 22:18:42.255:E/AndroidRuntime(10613):致命異常:主要 09-26 22:18:42.255:E/AndroidRuntime(10613): android.database.sqlite.SQLiteException:近 「」:語法錯誤(碼1):

在編譯:

UPDATE reminders 
SET NAME = 'Finish this app.' 
    , category = 'Personal' 
    , priority = 'Urgent' 
    , note = 'Test note' 
    , phone_call = 0 
    , text_message = 0 
    , phone_number = '' 
    , text_message_content = '' 
    , no_reminder = 0 
    , remind_me_after = 1 
    , remind_me_after_length = 120 
    , custom_remind_me_after = 0 
    , remind_me_at = 0 
    , time_hour = 22 
    , time_minute = 18 
    , date_month = 8 
    , date_day = 26 
    , date_year = 2012 
    , recur = Never 
    , custom_recur_length = 0 
    , custom_recur_unit = NULL 
    , custom_recur_until_month = 0 
    , custom_recur_until_day = 0 
    , custom_recur_until_year = 0 
    , custom_recur_sunday = 0 
    , custom_recur_monday = 0 
    , custom_recur_tuesday = 0 
    , custom_recur_wednesday = 0 
    , custom_recur_thursday = 0 
    , custom_recur_friday = 0 
    , custom_recur_saturday = 0 
    , share_email_address = '' 
    , share_email_message = '' 
    , share_phone_number = '' 
    , share_text_message_content = '' 
    , alert_type_sound = 1 
    , alert_type_vibrate = 1 
    , alert_type_notification_light = 1 
    , repeat_alert = 0 
    , repeat_alert_length = 0 
    , repeat_alert_times = 0 
WHERE _id = 8 
+4

我的上帝是一個醜陋的聲明。你能否更好地格式化它? –

+0

recur =從不...是'從來沒有'一個字符串或某種常數?如果它是一個字符串,那麼它缺少括號。 –

+0

recur = Never 應該是 recur ='從來沒有'我猜 –

回答

1
recur = Never 

應該

recur = 'Never' 

我猜

+0

它的工作原理!謝謝! – NewGradDev

1
recur = never, 

這應該是

recur = 'never',