SELECT DECODE(SEND_BEN_INFO1_7495_1,
'YOUR UTR SBINH13246802674 RTN',
( REPLACE(
REPLACE('YOUR UTR SBINH13246802674 RTN',
'YOUR UTR',
'')
, 'RTN',
'')
),
'Null'
)"UTR"
FROM NT_N06
where value_dt='20121214'
and MSG_SUMMARY_ID=181521.
这不行?如何在解码函数中使用select语句。