上一页: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})
<小于号,>大于号
上一页: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})
<小于号,>大于号
转载于:https://www.cnblogs.com/sanhao/p/7922608.html