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
相關文章
相關標籤/搜索