mysql查询当月数据
admin 阅读:76 2024-03-02
mysql查询当月数据:
select * from table where datetime > unix_timestamp(concat(date_format(now(),'%Y-%m-'),'01'));
datetime:表中的时间戳字段;
unix_timestamp(concat(date_format(now(),'%Y-%m-'),'01'):当月第一天的开始时间戳。声明
1、部分文章来源于网络,仅作为参考。 2、如果网站中图片和文字侵犯了您的版权,请联系1943759704@qq.com处理!





