这条sql语句可以得到两条相邻数据,然后分别显示这两条就ok了
select * from Article where
([ID] = (select MAX([ID]) from Article where [ID]<当前文章ID号)
or [ID] = (select MIN([ID]) from Article where [ID]>当前文章ID号 ))
或者select top 1 * from Article where ID<当前文章ID号 order by ID desc;select top 1 * from Article where ID>当前文章ID号 order by ID asc;
你这不是查出两条记录了吗,显示在页面里就可以了。