1 SELECT WO,VORNR,PARTNO, 2 Case XCHPF 3 WHEN 'X' THEN VENDERCODE ELSE NULL 4 END VENDERCODE, 5 Case XCHPF 6 WHEN 'X' THEN DATECODE ELSE NULL 7 END DATECODE,RSPOS,QUANTITY,SAPUPLOAD 8 FROM APD_POSTMATERIAL_ITEM 9 WHERE WO=:WO
XCHPF是建议批次,我现在想判断VENDCODE(厂家代码)、DATECODE(周期)是否是建议批次,没有就显示Null,希望大神能帮我更正下语句