项目中用到了需要统计某个列是数字的行数,可以使用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://uziwp.com/13626.html
Backup Bootstrap cache Chrome Cloud Dashboard Device Disk Docker file Gutenberg古登堡 IIS Javascript jQuery Linux Mariadb Media MySQL Network Nginx OneThink Pages PHP PHP8 Posts Qcloud腾讯云 Redis Rsync SEO Siteground system Tags Theme ThinkPHP Ubuntu VPS Vultr Windows WooCommerce WordPress WordPress Plugins WordPress插件 主题 搬瓦工BWH 编辑器
评论已关闭