现在,我正在尝试通过循环从表中获取前 10 个数据。
Select ClientUserName, DestHost, count(DestHost) counts from #ProxyLog_record
where ClientUserName =(Select top 1 ClientUserName from #ProxyLog_count_2)
Group by ClientUserName, DestHost order by counts desc
这仅从 clientusername 获取顶级数据我如何将它循环到它将获得第一个、第二个第三个、....第十个数据的位置?