MySQL:如何选择除前10条记录外的所有内容 [英] MySQL: how to select everything except first 10 records
本文介绍了MySQL:如何选择除前10条记录外的所有内容的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何从MySQL表中选择除前10条记录以外的所有记录?
How can I select all records except first 10 records from MySQL table?
(我知道limit 10,x
从第10个到第x个选择记录,但是我应该用什么代替x来选择所有剩余的记录?)
(I know that limit 10,x
selects records from the 10th to x-th, but what should I use instead of x to select all remaining records?)
推荐答案
使用OFFSET
.然后,您可以跳过10条记录,然后选择其余的记录,直到结束.
Use OFFSET
. Then you can skip 10 records and select the remaining ones until the end.
然后您的查询应为
SELECT field FROM table WHERE (condition) LIMIT 18446744073709551615 OFFSET 10;
这篇关于MySQL:如何选择除前10条记录外的所有内容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文