add: MySQL 基本操作

This commit is contained in:
qianguyihao
2020-04-21 17:06:32 +08:00
parent 4818d7af5d
commit f0640e5bba
2 changed files with 470 additions and 34 deletions

View File

@@ -60,26 +60,26 @@ Navicat Premium 软件是一种数据库管理的GUI软件采用可视化的
打开 Navicat Premium 软件,选择菜单栏「文件-新建连接-mysql」然后选择如下配置即可在本地新建一个数据库连接
![](https://github.com/qianguyihao/Web/blob/master/img/20200416_1157.png)
![](https://github.com/qianguyihao/Web/blob/master/../img/20200416_1157.png)
2、选中连接后右键新建数据库
![](https://github.com/qianguyihao/Web/blob/master/img/20200416_1159.png)
![](https://github.com/qianguyihao/Web/blob/master/../img/20200416_1159.png)
![](https://github.com/qianguyihao/Web/blob/master/img/20200416_1127.png)
![](https://github.com/qianguyihao/Web/blob/master/../img/20200416_1127.png)
3、选中数据库之后新建表 `qiangu_student_table`
![](https://github.com/qianguyihao/Web/blob/master/img/20200416_1138.png)
![](https://github.com/qianguyihao/Web/blob/master/../img/20200416_1138.png)
4、在表中添加字段
![](https://github.com/qianguyihao/Web/blob/master/img/20200416_1202.png)
![](https://github.com/qianguyihao/Web/blob/master/../img/20200416_1202.png)
5、字段建好后开始在表中插入数据
![](https://github.com/qianguyihao/Web/blob/master/img/20200416_1259.png)
![](https://github.com/qianguyihao/Web/blob/master/../img/20200416_1259.png)
### 导入外部 sql 文件