sql语句查询一条数据的上一条数据和下一条数据

表searchId为当前idcode 1.查询上一条数据class select * from tbContent where id=(select max(id) from tbContent where id<searchId) 2.查询下一条数据select select * from tbContent where id=(select min(id) from tbContent w
相关文章
相关标签/搜索