当前位置:数据库 > SQLite >>

关于sqlite3 top的查询


关于sqlite3 top的查询
 
其实,在sqlite3中没有top的语法结构,但在sqlite3中有相关的语法
能实现跟top语法相同的功能,sqlite3 sql是用limit这样的语法来实现的;
  www.zzzyk.com  
如: select * from table where name='_安静ゝ' order by id limit 0,10;
 
这个效果就相当于select top 10 * from table where name='_安静ゝ';
 
如果还有更精确的: www.zzzyk.com  
 
select * from table where name='_安静ゝ' order by date desc,id limit 0,10;
Oracle
MySQL
Access
SQLServer
DB2
Excel
SQLite
SYBASE
Postgres
如果你遇到数据库难题:
请访问www.zzzyk.com 试试
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,