项目中用到了需要统计某个列是数字的行数,可以使用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]+$'"
链接到文章: https://jiloc.com/43393.html
Copyright © 老季博客 苏ICP备2021023056号-3 Proudly powered by UZI Theme
发表回复