select * from server where sys_name like in ('%esl%', '%server%');就是说sys_name 要 like 括号里面的这些个字段, 除了一直用Or之外,有没简便写法?

解决方案 »

  1.   

    如果like条件规则的话,可以用正则,否则只能一个个or
      

  2.   

     
    insert into tmp2
    select '114' from dual union all
    select '125' from dual union all
    select '133' from dual union all
    select '22' from dualselect id,INSTR('11,22,33',id) from tmp2 ;select id,INSTR('11,22',id) from tmp2 where id like '%11%' or id like '%22%'INSTR试试