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;
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。