摘要: 当前ID为5,读取上一条记录: SELECT * FROM A WHERE ID < 5 ORDER BY ID DESC LIMIT 0,1; ps: select * from table1 where id<$id order by id desc limit 1 当前ID为5,读取下一条记录 阅读全文
posted @ 2020-08-03 22:51 RunningNeverStop 阅读(320) 评论(0) 推荐(0) 编辑