查mysql字段中的数字记录

select * from a where nameregexp '^[0-9]+$' ;

原文地址:https://www.cnblogs.com/sunson/p/5849841.html