PHP文章按日期(月日)归档的sql语句
PHP文章按日期(日)SQL归档
非时间戳日期格式归档(date_format格式化日期)
select date_format(`post_date`,'%Y%m%d') as pubtime, count(*) as cnt from wp_posts where `post_status`='publish' group by date_format(`post_date`,'%Y%m%d') order by `ID` desc
select date_format(`post_date`,'%Y%m%d') as pubtime,date_format(`post_date`,'%m 月 %d 日') as shijian,count(*) as cnt from wp_posts where `post_status`='publish' group by date_format(`post_date`,'%Y%m%d') order by `ID` desc limit 0,7
您可能感兴趣的文章:
PHP文章按日期(月日)归档的sql语句
jQuery双日历插件 jQuery Datepicker
有关Oracle的时间/日期的操作
mysql查询指定日期时间内的sql语句及原理
mysql获取当前系统时间及当前日期方便查询判定
收集的一些oracle sql语句
Php按时间查询 Mysql常用语句
关于mysql日期的一些例子
php日期所在月的第一天日期和最后一天
php查询指定日期范围内数据