如何與MS Access中一個查詢更新兩行...更新兩行通過SQL查詢
我測試曼尼代碼,但沒有人工作,我的MS Access ...
UPDATE tblSecondProductItems
SET secondProductItemLot = CASE
when secondProductItemCode = '616161911659' then 20
when secondProductItemCode = '611611965166' then 21
end
where secondProductItemCode in('616161911659','611611965166')
你能在這個語句引起的問題詳細點嗎?它錯誤嗎?產生錯誤的結果? – Mureinik
它commes錯誤:語法錯誤(缺少操作員)在查詢表達式「CASE 時secondProductItemCode =‘616161911659’,那麼20 時secondProductItemCode =‘611611965166’,那麼21 結束 – Pecurka