答案 0 :(得分:1)
EXCEPT TOP 1 SELECT
应为EXCEPT SELECT TOP 1
。
也就是说,此处不需要设置操作。只需使用OFFSET
子句排除第一行:
CREATE PROCEDURE dbo.GetThreadDetails(@tid int) as
select t.uid, fullname, text, dp
from threads t , users u
where tid = @tid and t.uid = u.uid
order by sno
OFFSET 1 ROWS;