Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何按列中的关键字出现对查询结果进行排序?我正在使用带有全文索引的 SQL Server 2008。
select columnname, count(columnname) as cnt from tablename group by columnname order by count(columnname) desc
select * from tablename order by columnname
那是你要找的吗?