mysql查询当月数据 0 By 董德多 on 2020年3月23日 MySQL 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'):当月第一天的开始时间戳。 当月数据