22,209
社区成员
发帖
与我相关
我的任务
分享
select count(1) as news_num,
convert(varchar(10),news_addtime,120) as news_addtime
from news_content
where news_ediror='编辑名称' and datediff(month,news_posttime,getdate())=0
group by convert(varchar(10),news_addtime,120)
order by news_addtime asc
select count(*) as news_num ,
news_addtime
from news_content
where datediff(mm,news_addtime ,getdate())=0
and news_ediror=?
select
count(1) as news_numm,
convert(varchar(10),news_addtime,120) as news_addtime
from
tb
group by
convert(varchar(10),news_addtime,120)
select count(1) as news_numm,
convert(varchar(10),news_addtime,120) as news_addtime
from tb
group by convert(varchar(10),news_addtime,120)