原文地址:http://jayzhou215.blog.163.com/blog/static/132713533201232752510450/

网上有的说法是sqlite3 中limit n,m语法无效,实际是错误的。

正确的语法是

The two syntax forms are a little confusing because they reverse the numbers:

LIMIT <skip>,<count>

Is equivalent to:

LIMIT <count> OFFSET <skip>
 
LIMIT <跳过的数据数目>, <取数据数目>
等价于
LIMIT <取数据数目> OFFSET <跳过的数据数目>
实际使用中是有效的。
posted on 2012-10-22 10:47  水月无痕  阅读(721)  评论(0)    收藏  举报