1
我想從ReceiveNote選擇是否fromloc = 1,那麼印刷廠人有後打印其他消息102,15級,狀態1,3號線附近有語法錯誤「=」
SELECT PurDate,
case ReceiveNote.FromLOC
when ReceiveNote.FromLOC = '1' THEN 'Factory'
when ReceiveNote.FromLOC = '2' THEN 'Other'
else ''
end as FromLOC FROM tbl1