请问如何查询一个字段所有的数字,比如一下数据,我想查询所有的完全数字
A0001
A0002
11222
1155
A0003查询结果是
11222
1155谢谢大家啊,在线等

解决方案 »

  1.   

    select * from tablename where columnname regexp '^[0-9]+$'
      

  2.   

    select *  from tt where cast(ff as decimal)>0
    如果字段中没有0
      

  3.   

    or
    select * from tta where ff regexp '^[0-9]'
      

  4.   

    不知道楼主的记录有没有这样的格式
    空格空格空格123
    用正则表达式不能判断,用0+ff>0可以
    select * from tta where 0+ff>0
      

  5.   

    谢谢WWWW,问题已解决,太感谢了