--- 创建表
create table student(_id integer primary key autoincrement, name text);
--- 查询全部
select _id,name from student;
--- 添加一条
insert into student(name) values('刘德利');
--- 修改条件 _id = 1 的数据
update student set name='德利刘' where _id = 1;
--- 删除条件 _id = 1 的数据
delete from student where _id = 1;
adb命令操作数据库:
进入cmd命令窗口
adb devices
adb remount
adb shell
cd /data/data/自己应用程序包名/
cd database
ls -all
sqlite3 数据库完整名称
select * from 表名;