select * from table_a where aaa like '%OR%'

解决方案 »

  1.   

    select * from table_a
      where aaa like '%'||chr(39)||'%'
         or aaa like '%'||chr(34)||'%';
      

  2.   

    到底是'or'还是别的?不管是什么,这个都管用。如果是单引号,则需要写两个
    select * from table_a where instr(aaa,'or')>0;select * from table_a where instr(aaa,'''')>0;
      

  3.   

    同意  KingSunSha(弱水三千)   
    @_@  :)不好意思,意思说得不明确,以后改
    谢谢各位
      

  4.   

    纠正一下:
     KingSunSha(弱水三千) 方法正确,但单音号和双引号的ASCII码不是39、40 xinpingf(白开心) 方法正确:select * from table_a where instr(aaa,'''')>0;
    没给xinpingf(白开心)分,对不起