1. 首页
  2. 数据库
  3. 其它
  4. PHP文章按日期(月日)SQL归档语句

PHP文章按日期(月日)SQL归档语句

上传者: 2020-12-23 00:25:12上传 PDF文件 29.06KB 热度 14次
复制代码 代码如下: 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-%d’) as pubtime, count(*) as cnt from articles group by FROM_UNIXTIME(pubtime, ‘%Y-%m-%d’) 非时间戳日期格式归
下载地址
用户评论