SQLite语句

搜索某属性:

select exp from player where level = 2;

 

创建表:

create table player (level integer primary key, name text);

 

删除表:

drop table player;

 

更新数据:

update player set exp = 300 where level = 2;

 

插入数据:

insert into player (level, exp) values ('2', '200');

insert into player values ('2', '200');

 

 

复制表:

create table newtable as select * from oldtable where rowid = 1

 

 

 

 

 

获得所有table名:

select name from sqlite_master where type='table' order by name;

 

posted @ 2016-04-13 16:22  狭隘龙  阅读(143)  评论(0编辑  收藏  举报