叮当猫咪
SELECT agentserialno,tradestatusFROM t_hvps_paymentbookWHERE tradestatus in DECODE ('2','2','(1,2)','1') order by agentserialno;这句话中的DECODE,可以这样转换:SELECT agentserialno,tradestatusFROM t_hvps_paymentbookWHERE tradestatus in ('(1,2)') order by agentserialno;这样看与第一句话的SELECT agentserialno,tradestatusFROM t_hvps_paymentbookWHERE tradestatus in (1,2)还是有区别的。