2015-12-01 126 views
0
INSERT INTO patient(patient_id, pt_name, pt_dob, pt_gender, pt_occupation, pt_address, pt_city_town_vill, pt_district, pt_state, pt_pin, pt_country, pt_email_id, pt_phone, ecp_name, ecp_relation, ecp_address, ecp_city_town_vill, ecp_district, ecp_state, ecp_pin, ecp_country, ecp_email_id, ecp_phone, history, blood_grp, allergy) VALUES (c37d661d-7e61-49ea-96a5-68c34, 'Rahul', {'2015-12-3 23:21'}, 'male', 'farmer', 'nadia', 'berhampore','murshidabad','west bengal', '700300', 'india', '[email protected]', '990876541', 'Rohan', 'family-friend', 'abc', 'downtown', 'dinajpur', 'bengal', '788905', 'zgyuj', '[email protected]', '990742568', {'2015-12-3 10:00' : 'has diabetes and high blood pressure'}, 'O positive', {'rashes appear on consumption of prawns' : 'is allergic to quinone medicine'}); 

有人請解決這個錯誤...卡桑德拉CQL實施

<ErrorMessage code=2000 [Syntax error in CQL query] message=line 1:367 mismatched character ',' expecting set null"> 
+0

你可以給我們DDL表病人和你的cassandra CQL版本嗎? –

回答

0

檢查字符367(每錯誤消息)。是patient_id一個uuid?我不認爲c37d661d-7e61-49ea-96a5-68c34是有效的