2010-08-21 49 views

回答

0
SELECT IIF(INSTR(s.PURC_ORDER_ID,'-'),MID(s.PURC_ORDER_ID, 1, INSTR(s.PURC_ORDER_ID,'-')-1), s.PURC_ORDER_ID) as DesiredOutput 
FROM SYSADM_PURC_ORDER_LINE.PURC_ORDER_ID s; 
相關問題