Home > Backend Development > PHP Tutorial > mysql语句有关问题。

mysql语句有关问题。

WBOY
Release: 2016-06-13 10:07:10
Original
763 people have browsed it

mysql语句问题。。
假如有N条数据,我想拿最后10条,比如1~100,拿 91-100,改怎么拿?
用order by id desc limit 0,10 拿出来会是100-91
N时时刻刻在更新,也不知道N是多少,,用不了between
求方法!

------解决方案--------------------

探讨
……
用order by id desc limit 0,10 拿出来会是100-91
……
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template