首页 > 数据库技术 > 详细

sqlite3

时间:2016-03-11 20:19:59      阅读:216      评论:0      收藏:0      [点我收藏+]

 1.终端操作

技术分享

 

创建表

create table if not exists Student (id integer primary key autoincrement,name varchar[20] not null,address varchar[100],image blob);

查看自己的创建语句

技术分享

插入数据

insert into Student(name,address) values("huoran","ruanjianyuan");

查找

技术分享

 

select * from Student where id = 2;

select name from Student where id = 2;

更新

update Student set address = "nanjing" where name = "baoyun";

删除

delete from Student where id = 1;

删除表

drop table Student;

2.代码操作

 

sqlite3

原文:http://www.cnblogs.com/huoran1120/p/5266835.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!