mysql 查询某字段值全是数字

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

 

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