select * from tab_1 where rtrim(aa) is null;

解决方案 »

  1.   

    select * from tab_1 where aa  like '%   %'
      

  2.   

    select *from tab_1 where rtrim(aa) is null;
      

  3.   

    select * from tab_1 where instr(aa,' ')>0
      

  4.   

    select *from tab_1 where instr(aa,' ')>0
      

  5.   

    select *from tab_1 where instr(aa,' ')>0
      

  6.   

    类似这样的情况可以使用select nvl(length(rtrim(aa)),0 from tab_1
    这时就会看到得到的结果是0,去掉nvl函数后得到的结果是空
    也就是说使用函数rtrim之后aa变成一个空的字符串;用''去匹配得到的结果当然是空了
      

  7.   

    select * from a where aa = '  ';
    空格可以任意多。没必要非得rtrim