码迷,mamicode.com
首页 > 数据库 > 详细

非分页中的上一篇下一篇sql语句如何写

时间:2017-11-29 22:03:57      阅读:211      评论:0      收藏:0      [点我收藏+]

标签:select   ati   where   语句   from   nbsp   分页   amp   and   

上一页:where id=(select max(id) from examination where id < #{id} and class=#{class})

下一页:where id=(select min(id) from examination where id > #{id} and class=#{class})

<小于号,>大于号

非分页中的上一篇下一篇sql语句如何写

标签:select   ati   where   语句   from   nbsp   分页   amp   and   

原文地址:http://www.cnblogs.com/sanhao/p/7922608.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!