PHP文章按日期(月日)SQL归档语句
实现代码如下: select FROM_UNIXTIME(pubtime, '%Y-%m') as pubtime, count(*) as cnt from articles group by FROM_UNIXTIME(pubtime, '%Y-%m')PHP文章按日期(日)SQL归档 实现代码
实现代码如下: select FROM_UNIXTIME(pubtime, '%Y-%m') as pubtime, count(*) as cnt from articles group by FROM_UNIXTIME(pubtime, '%Y-%m')PHP文章按日期(日)SQL归档 实现代码