数据量大了,必然导致性能降低,但是又没找到更好的方法----囧
DECLARE @PageSiz INT, @CurPage INT 
SET @PageSiz = 10  
SET @CurPage = 28 
select top (@PageSiz)  *  from JS_ARTICLE
where [GUID] not in(
select top ((@CurPage-1)*@PageSiz) [GUID] from JS_ARTICLE where  ArticleID not in (33,36,39) and ClassId='7f57a331-1e17-46ef-aaea-a6c0d1f0f0c7' order by ArticleID,[GUID])
and ArticleID not in (33,36,39) and ClassId='7f57a331-1e17-46ef-aaea-a6c0d1f0f0c7' order by ArticleID,[GUID]

相关文章:

  • 2021-08-25
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-06
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-07-10
  • 2022-12-23
  • 2021-12-28
  • 2021-12-27
相关资源
相似解决方案