我只想从表中选择第二行。从 ClientUserName 列。
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
(Select top 1 ClientUserName from #ProxyLog_count_2)
仅显示top 1
,但我需要从该表中获取第二个数据。我怎样才能做到这一点?