MySQLиIDѯָ¼(idΪ26)һ¼һ¼:
һ SELECT * FROM xxx WHERE id < 26 ORDER BY id DESC LIMIT 1;
һ SELECT * FROM xxx WHERE id > 26 ORDER BY id LIMIT 1;
ԣ
һ
select * from xxx where id =
(select max(id) from xxxx where id < 26 order by px_id desc, id desc);
һ
select * from content where id =
(select min(id) from xxxx where id > 26 order by px_id desc, id desc);