-2
update kothari_kem.companyinfo ci
set ci.viewsource = ""
where ci.recid in (
SELECT c.recid
FROM kothari_kem.companyinfo c
where (c.contactperson = NULL or c.contactperson = "")
AND (c.viewsource = NULL or c.viewsource = "Y")
)
你得到一些錯誤?怎麼了? – Marco
是的我得到錯誤 您不能在FROM子句中指定更新的目標表'ci' 錯誤編號1093 – vinit
請勿使用'='與null進行比較。使用'是NULL'instaed。 –