SQLite--相关查询
来源:互联网 发布:剑三 捏脸数据 编辑:程序博客网 时间:2024/05/23 12:48
1. 没有 top 关键字
在SQLite中改用limit来代替top用法,例如: select * from student order by id limit 1,3 该句的意思:从student表记录中,1开始的位置查询3条记录出来,并将结果按照id
列的升序排列.
2. 连接通配符使用 ||
例如: select * from student where name like '%e' || 's%'
3. exists的使用
例如: select * from student where exists(select id from school where stuid=1) and stuid = 1
4. 返回新插入数据的自增ID
insert into student(stuname,stuage) values("aa",12);
select last_insert_rowid() from student limit 0,1;
0 0
- SQLite--相关查询
- Android SQLite 查询相关的笔记
- 使用adb shell对SQLite进行相关查询
- android sqlite查询数据表的字段与相关属性
- SQLite 相关
- 【Android】【Sqlite】sqlite 相关
- sqlite 查询
- sqlite相关操作
- SQLITE相关技术网址
- Sqlite 相关资料收集
- Sqlite的相关使用
- Sqlite数据库相关操作
- SQLite相关备忘
- sqlite相关链接
- sqlite相关技术记录
- SQLite数据库相关操作
- SQLite编程相关
- SQLite相关知识总结
- IPMI配置使用步骤
- GSM伪基站检测跟踪定位
- php全局变量$_SERVER解析
- ios--设计模式--简单工厂模式
- std::list
- SQLite--相关查询
- hust 1010 KMP算法求最小循环节
- 职责链模式(C++实现)
- Codeforces_394B_Very Beautiful Number(数论)
- Android Handler简记
- Swing 窗体关闭对话框提示
- 李东超韩顺平亲自披挂上阵广州传智PHP首期
- CocoaPods的安装和初级使用
- ios--设计模式--类关系