mysql 查询某字段值全是数字

select * from x_ziyuan where zy_zhanghu regexp '^[0-9]+$'

 

posted @ 2017-07-11 16:38  Nullnullisnull  阅读(2526)  评论(0)    收藏  举报