SQLite——增删改查

增:

1.creat table 表名(字段1,字段2)

2.creat table if not exists 表名(字段1,字段2)

3.insert into 表名(字段1,字段2,...)values(值1,值2,...)

删:

drop table 表名

改:

update 表名 set 字段 = '新值' where 条件

查:

select 字段 from 表名

——————————————————————————————————————————

增有三个方法,其它有一个方法

猜你喜欢

转载自blog.csdn.net/sndongcheng/article/details/81096076