運行下面的查詢時,我得到[Informix][Informix ODBC Driver][Informix]A syntax error has occurred
。當我刪除雙撇號查詢成功執行。 Google可以找到的所有信息都告訴我我做的是正確的事情。七年前,我使用Informix時沒有這種問題,所以我認爲我已經忘記了一些重要的東西!Informix撇號SQL錯誤
insert into ct_repairs (ct_job_no,inh_job_no,reference,tab
,rec_date,rec_time,priority,start_dte,start_tme,app_date
,app_time,card_date,card_time,est_date_comp,est_time_comp
,act_date_comp,act_time_comp,exp_code,ct_notes,ct_status
) values (
2090
,335706
,'23026002003'
,'P'
,NULL
,''
,1
,"22/02/2010"
,'10:47'
,NULL
,''
,"22/02/2010"
,'11:14'
,NULL
,''
,NULL
,''
,'DTD'
,'**PLS NOTE PLANNED WRKS GOING ON ON ASCOT RD,IE ROOFS,RENDERERING,AND HIGH LEVEL CLOSE BOARD FENCES:SPOKE TO THE LADY AT NO 2 SHE DOESN''T NO ANYTHING ABOUT FENCE ISSUES,CALLED AT NO [email protected] ASCOT NO ACCESS TO EITHER PROPERTIES**:YOU YOU PLS SEND A EMAIL TO TREVOR ON PLANNED ASKING IF NO 2 ASCOT RD IS DOWN FOR A NEW CLOSED BOARDED FENCE,OR IS THAT THE PROBLEM NO 4 BEING PRIVATE THAT THEY HAVEN''T PUT ONE UP**'
,0
)
這真的很有幫助。我發現我可以在字符串<= 255個字符的撇號,我可以有字符串> 255個字符沒有撇號,但我不能有字符串> 255個字符的撇號!我已經解決了它並很開心。 – cja 2010-02-26 17:32:49