sqlite3 语句
来源:互联网 发布:hr面试java常问的问题 编辑:程序博客网 时间:2024/05/20 23:02
表不存在则创建
create table if not exists student( _id Integer primary key autoincrement , name Text , age Integer)
当表中的数据不存在则插入,存在则更新
replace into student( _id , name ,age ) VALUES ( 1,'zz7zz7zz',25)
或
insert into student(name,age) select 'zz7zz7zz',25 where not exists(select * from student where name='zz7zz7zz' and age=25)
- sqlite3语句
- sqlite3语句
- sqlite3语句
- sqlite3语句
- sqlite3语句
- sqlite3语句
- sqlite3 语句
- sqlite3语句
- Sqlite3 语句
- 15条SQLite3语句
- 15条SQLite3语句
- SQLite3常用语句
- 15条SQLite3语句
- sqlite3 15条语句
- sqlite3&sql语句
- 15条SQLite3语句
- sqlite3 语句总结
- sqlite3数据库基础语句
- [hadoop云计算实战]hadoop的Avatar机制
- linux 编译段错误解决方法
- LaTex的一些技巧
- vim 横行和纵向分割
- Android 头 5 年最重要的 20 个里程碑
- sqlite3 语句
- hdu 1535 Invitation Cards(最短路)
- Jquery鼠标控制图片轮播,animate()动画队列,stop()清除队列
- 用批处理备份交换机的日志文件
- java多线程
- Java Eclipse Shortcuts: Tips and Tricks for the Eclipse Java IDE
- UITableView 取消选中行高亮
- tar.gz的解压和安装
- 编程总结,在MFC下编程