东京热无码高清|亚洲区欧洲区综合区视频区|91爱爱电影视频精品激情久久天堂|精品孕妇一区二区三区

首頁 服務(wù) 產(chǎn)品 文檔 關(guān)于

sqlserver 按某列值的重復(fù)次數(shù)排序

表格article按標(biāo)題重復(fù)次數(shù)降序列表查詢,返回title和title值的重復(fù)次數(shù):

status=1條件為article的列status

select top 3 tb1.* from (select title,count(*) as count from article where status=1 group by title) as tb1 order by tb1.count desc