将行标准移动到外部选择中
SELECT * FROM (SELECT ROW_NUMBER() OVER (ORDER BY hrl.Frn) as Row, ... WHERE hc.Entity_Type = 'L' AND hrl.LicenseStatusId IN (1) ) T WHERE T.Row >=1 and T.Row <= 20)