项目中用到了需要统计某个列是数字的行数,可以使用mysql的 REGEXP 函数:
select COUNT(1) from tablename where uniacid=123 and touser REGEXP '^[0-9]+$'"
项目中用到了需要统计某个列是数字的行数,可以使用mysql的 REGEXP 函数:
select COUNT(1) from tablename where uniacid=123 and touser REGEXP '^[0-9]+$'"
腾讯云QCloud
2核2G4M云服务器,新老用户同享年付¥99、MySQL 1核1G年付仅需¥59 续费与新购同价
665443669
,获取商家优惠推送、禁言。
发表回复