加入收藏 | 设为首页 | 会员中心 | 我要投稿 云计算网_泰州站长网 (http://www.0523zz.com/)- 视觉智能、AI应用、CDN、行业物联网、智能数字人!
当前位置: 首页 > 站长学院 > MySql教程 > 正文

MySQL LIMIT / OFFSET:获取除第一个X之外的所有记录

发布时间:2021-03-30 15:34:10 所属栏目:MySql教程 来源:网络整理
导读:我想查询50号及以上的所有记录.因此,我不想做LIMIT 49,99999这样的事情,而是想知道是否有正式方式.最佳答案不,对不起从MySQL Documentation: To retrieve all rows from a certain offset up to the end of the result set,you can use some large number

我想查询50号及以上的所有记录.因此,我不想做LIMIT 49,99999这样的事情,而是想知道是否有正式方式. 最佳答案 不,对不起从MySQL Documentation:

To retrieve all rows from a certain
offset up to the end of the result
set,you can use some large number for
the second parameter. This statement
retrieves all rows from the 96th row
to the last:

SELECT * FROM tbl LIMIT 95,18446744073709551615;

(编辑:云计算网_泰州站长网)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    热点阅读