项目中用到了需要统计某个列是数字的行数,可以使用mysql的 REGEXP 函数:
select COUNT(1) from tablename where uniacid=123 and touser REGEXP '^[0-9]+$'"
WordPress采集插件WP-JPost,Linode,Vultr,Ramnode,优惠码 Coupon,Gift Code,VPS推荐评测,专注Linux,Apache,Mysql,MariaDB,PHP,Nginx技术
项目中用到了需要统计某个列是数字的行数,可以使用mysql的 REGEXP 函数:
select COUNT(1) from tablename where uniacid=123 and touser REGEXP '^[0-9]+$'"