表A中有一个字段B,B中只要有除数字以外的串,就全部显示出来!请问SQL怎么写

解决方案 »

  1.   

    SQL> desc a_clutter
     名称                                                  空值?    类型
     ----------------------------------------------------- -------- ----------------
    --------------------
     TMP                                                   NOT NULL VARCHAR2(10)SQL> select * from a_clutter;TMP
    ----------
    12dssd2
    200601
    200602
    200603
    200604
    200605
    200606
    200607
    200608
    200609
    200610
    200612
    200611已选择13行。SQL> select tmp from a_clutter where length(trim(translate(tmp,'0123456789','
         '))) > 0;TMP
    ----------
    12dssd2
      

  2.   

    to jdsnhan(柳荫凉) :
    兄弟,你这个方法不行,选不出数据!
      

  3.   

    SQL> select tmp from a_clutter where length(trim(translate(tmp,'0123456789','空格'))) > 0;
      

  4.   

    select * from my where trim(translate(name,'0123456789',' ')) is not null;
      

  5.   

    select * from a_clutter where trim(translate(tmp,'0123456789',' ')) is not null;
    这个没问题,结帖...
    你那个确实小有问题