mysql 查询当天的访问次数

mysql 查询当天的访问次数,第1张

如果是SQL,可以这样写

select count(*) from table where datediff(d,时间,getdate())=0

不知道MYSQL一不一样

select count(c) as c2 from (select date(time_happend) as c from users_operation_history as v_table ) v_table group by c order by c2 desc limit 1


欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/zaji/8627898.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2023-04-19
下一篇 2023-04-19

发表评论

登录后才能评论

评论列表(0条)

保存