日期:2014-05-18 浏览次数:20768 次
select * from tb where id=@id --当前记录 union all select top 1 * from tb where id>@id order by id --下一条记录 union all select top 1 * from tb where id<@id order by id desc --上一条记录 ------解决方案--------------------