1.安装
本地安装:sudo dpkg -i *.deb
在线安装:sudo agt-get install sqlite3;
2.基本命令:
.help
.quit
.exit
sql语句:
root@pop:/# sqlite3 student.db //创建数据库
create table stu(id Integer,name char,score float);
.schema 查看表
insert into stu values(1001,'Allen',80);
insert into stu(name,score) values('Ma',40);
select * from stu where id=1000 or name='Allen';
delete from stu where id=1000;
update stu set name='jack' where id=1001;