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

mysql语句有关问题。

WBOY
WBOYOriginal
2016-06-13 13:46:29720browse

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
……
Statement:
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