select (case f1 when like '86%' then '1' else '2' end) as FFFF ,* from tmp1
select decode(f1,like '86%','1','2') as FFFF ,* from tmp1
以上两句好象都不行,请问应该怎么写,多谢!
...全文
4471打赏收藏
CASE,DECODE 可以带LIKE吗?
不是在存贮过程中的, select (case f1 when like '86%' then '1' else '2' end) as FFFF ,* from tmp1 select decode(f1,like '86%','1','2') as FFFF ,* from tmp1 以上两句好象都不行,请问应该怎么写,多谢!