一般不那样写吧  select * from  aa where 列名 like '%...%'

解决方案 »

  1.   


    select 1 from dual where 'a' like '%a%';      --可以查询出结果
    select 1 from dual where 'a' like '%ab%';     --无结果
    select 1 from dual where 'a' like  '%%';      --有结果,这种就是楼主的第一句sql的效果select 1 from dual where 'a' not like '%a%';  --无结果
    select 1 from dual where 'a' not like '%ab%' --可以查询出结果
    select 1 from dual where 'a' not like '%%';   --无结果
    --楼主细细体会
      

  2.   

    like 后面两个百分号中间是列名啊 不能用引号引着的吧 这样写好像不是简单的模糊查询吧
      

  3.   

    like 后面两个百分号中间是列名啊 不能用引号引着的吧 这样写好像不是简单的模糊查询吧
    你得列始终要解析成具体值的撒