美文网首页
Sqlite3__Terminal

Sqlite3__Terminal

作者: Mustard_Buli | 来源:发表于2016-03-28 20:24 被阅读10次

创建表
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;
补充:
sqlite> SELECT * FROM COMPANY LIMIT 3 OFFSET 2;
从哪行开始至少几行

相关文章

网友评论

      本文标题:Sqlite3__Terminal

      本文链接:https://www.haomeiwen.com/subject/omnjlttx.html