国产精品亚洲综合色拍,人人干人人爱,中文字幕专区在线亚洲,清纯唯美激情视频二区

首頁(yè) 服務(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