代码示例:
WITH domain AS(SELECT ROW_NUMBER() OVER(ORDER BY ID DESC) ids,* FROM dbo.DomainInfo) SELECT * FROM domain WHERE ids BETWEEN 1 AND 20 ORDER BY CityID DESC
时间: 2024-10-12 03:50:52
代码示例:
WITH domain AS(SELECT ROW_NUMBER() OVER(ORDER BY ID DESC) ids,* FROM dbo.DomainInfo) SELECT * FROM domain WHERE ids BETWEEN 1 AND 20 ORDER BY CityID DESC