2016-02-15 119 views
0

友執行以下查詢時,我收到此錯誤:附近意外的標記語法錯誤'(」 幫我...卡桑德拉查詢得到錯誤

INSERT INTO table_name(account_sid, transcription_id, audio_url, call_sid, callback_method, callback_url, cost, duration, recording_sid, status, transcription_change_date, transcription_date, transcription_sid, transcription_text, type) VALUES ('534534534534535', now(), '', '', '', '','', '', '', '', '', '', '', '', ''); 

回答

1

類型是CQL關鍵字,因此它是失敗。 您可以使用雙引號逃脫。

INSERT INTO table_name(account_sid, transcription_id, audio_url, call_sid, callback_method, callback_url, cost, duration, recording_sid, status, transcription_change_date, transcription_date, transcription_sid, transcription_text, "type") VALUES ('534534534534535', now(), '', '', '', '','', '', '', '', '', '', '', '', ''); 

List of keywords in CQL