0
我明顯在這裏做錯了事。我需要知道如何處理單引號。我有以下SQL代碼不運行:vb腳本和單引號有人可以看我的代碼嗎?
sql = "Select C.ID, cc.contact_email as Email, cc.web_user_id from customer c
Inner join CUSTOMER_CONTACT cc ON "
sql = sql & "c.ID = cc.customer_ID Where cc.web_user_id like "' %O%"'"
and c.ID like "' & CUSTID & "'" "
任何幫助將不勝感激。我在網上看到很多關於如何處理雙引號和單引號的問題。
不知道是否最終像需求通配符? dim sql sql =「Select C.ID,cc.contact_email as Email,cc.web_user_id from customer c Inner join CUSTOMER_CONTACT cc ON」 sql = sql&「c.ID = cc.customer_ID where cc.web_user_id like'%O% '和c.ID'CUSTID'「 msgbox sql – MiguelH