1、在SQLite中创建数据库和表
1.1、按WIN+R,打开控制台,然后把指引到我们的SQLite的安装路径,输入D:,切换到D盘,cd 地址,切换到具体文件夹,输入"sqlite3",启动服务

1.2、创建数据库和表
id和name是表的属性(列名),int和varchar是列名的数据类型,int表示是整型,varchar表示是字符串,长度是20,primary key指的是该列是该表的主键。
bash
# 创建一个名为test的数据库
.open test.db
# 在test数据库中创建一个名为person的表
create table main.person(
id int primary key,
name varchar(20)
);


然后就可以在SQLite的安装路径下看到我们新建的数据库文件

2、用SQLite Studio连接SQLite数据库
2.1、打开SQLite Studio,点击"数据库",选择"添加数据库",然后打开文件浏览器,进入我们的SQLite的安装路径,选择我们之前新建的数据库test,
