Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我目前使用 CTE 处理数据分页,条件查询可以处理 CTE 吗?
IIRC,nhibernate 在 2005+ 分页时使用 CTE,因此分页的查询将导致 CTE 使用查询进行分页。这是合乎逻辑的,因为除非您想使用临时表,否则没有其他方法可以在 sqlserver 2005/2008 上进行分页。(不,行号技巧等并非在所有情况下都有效,o/r 映射器需要与始终有效的分页系统一起使用)