Tag: 上一
MYSQL实现上一篇下一篇文章的sql语句
MYSQL语句如下示例(select *,'上一篇' as type from table where id>$id order by id asc limit 1) union(select *,'下一篇' as type from table where id<$id order b ...
MYSQL语句如下示例(select *,'上一篇' as type from table where id>$id order by id asc limit 1) union(select *,'下一篇' as type from table where id<$id order b ...