设为首页 加入收藏

TOP

关于sqlite3 top的查询
2014-11-23 23:40:19 来源: 作者: 【 】 浏览:8
Tags:关于 sqlite3 top 查询

关于sqlite3 top的查询
其实,在sqlite3中没有top的语法结构,但在sqlite3中有相关的语法
能实现跟top语法相同的功能,sqlite3 sql是用limit这样的语法来实现的;
www.2cto.com
如: select * from table where name='_安静 ' order by id limit 0,10;
这个效果就相当于select top 10 * from table where name='_安静 ';
如果还有更精确的: www.2cto.com
select * from table where name='_安静 ' order by date desc,id limit 0,10;
】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
分享到: 
上一篇2013年SQLite3学习笔记之一 下一篇sqlite3编译安装

评论

帐  号: 密码: (新用户注册)
验 证 码:
表  情:
内  容: