项目中用到了需要统计某个列是数字的行数,可以使用mysql的 REGEXP 函数:

select COUNT(1) from tablename where uniacid=123 and touser REGEXP '^[0-9]+$'"