一.学生信息数据库(stusys)中的表------学生表(student),课程表(course),成绩表(score),教师表(teacher),讲课表(lecture).
二.操作
1.创建数据库中的sutsys,代码及运行结果如下:
![](https://img-blog.csdnimg.cn/img_convert/46933f90b39a7b0534a85469108109b6.png)
2.进入数据库stusys中
![](https://img-blog.csdnimg.cn/img_convert/0aedc22913c389a42997f0a218d342b4.png)
3.创建学生表,课程表,成绩表,教师表,讲课表
![](https://img-blog.csdnimg.cn/img_convert/ac69b95b4dc7b2b7378c16f41dca9759.png)
![](https://img-blog.csdnimg.cn/img_convert/75427e7200d1fdf00c1501492e4acb9d.png)
![](https://img-blog.csdnimg.cn/img_convert/e72e76c0424fe5abb43f1bc6d31c8814.png)
![](https://img-blog.csdnimg.cn/img_convert/dea4e1027ffd0defb14b56c25cae9aa1.png)
4.添加数据表内容/记录
注:这里已经在stusys中,不需要再次进入,如果数据结构库表较多,需 use 库名 进入特定库
![](https://img-blog.csdnimg.cn/img_convert/dc3421f9ff08e31decc1126c7fc5297b.png)
![](https://img-blog.csdnimg.cn/img_convert/a8f5e0d404026479927d269bb2a28322.png)
![](https://img-blog.csdnimg.cn/img_convert/5ce779f52b8f4d674be413e96c5ff700.png)
![](https://img-blog.csdnimg.cn/img_convert/4178cd53e80e06f0aecfeeae2420a6b2.png)
![](https://img-blog.csdnimg.cn/img_convert/2dae9a0c05181d9a156e3cc49f9820e6.png)
5.最后检验数据是否插入成功
![](https://img-blog.csdnimg.cn/img_convert/15b05c504bc268d9605749d33d6c73ec.png)
![](https://img-blog.csdnimg.cn/img_convert/144f92128a335cfb4002b95306f06456.png)
![](https://img-blog.csdnimg.cn/img_convert/4f1b89eb0fafb759a062e7e5d28df09d.png)
![](https://img-blog.csdnimg.cn/img_convert/61419f08c471d3df30b62bfb809f7602.png)
![](https://img-blog.csdnimg.cn/img_convert/f5379fd6351ab1ec6043017ac24072b8.png)
1.创建数据库中的sutsys,代码及运行结果如下:
2.进入数据库stusys中
3.创建学生表,课程表,成绩表,教师表,讲课表
4.添加数据表内容/记录
注:这里已经在stusys中,不需要再次进入,如果数据结构库表较多,需 use 库名 进入特定库
5.最后检验数据是否插入成功