+ -
当前位置:首页 → 问答吧 → instr函数,decode函数杂用?

instr函数,decode函数杂用?

时间:2011-10-19

来源:互联网

select *
  from frttcditm
 where frttcdsetid = 'B389'
  and instr(decode('[]', '00', ',00,01,02,', ',00,01,02,03,04,05,06,07,'),
  ',' || cditmid || ',') > 0

作者: hou_guannan   发布时间: 2011-10-19

什么问题?

作者: noteasytoregister   发布时间: 2011-10-19

--1表示yes 其他表示no
select decode('1','1','yes','no') from dual; 
select decode('0','1','yes','no') from dual; 
--e的位置
select instr('yes','e',1) from dual

作者: yejihui9527   发布时间: 2011-10-19

热门下载

更多