查找文章上一篇和下一篇sql语句

查找关键     获取上一篇小于当前id的最大id     max(id)  相反下一篇min(id)     还要获取当前栏目id

$title_a=recinfo("select  max(id) from ysc_detail where name=$nameid and id<{$_GET['news']}");

猜你喜欢

转载自blog.csdn.net/dengpengquan/article/details/81382355
今日推荐