1、 导入hellodb.sql生成数据库
(1) 在students表中,查询年龄大于25岁,且为男性的同学的名字和年龄
![](https://img.haomeiwen.com/i14519622/d22e4d26ef1beec5.png)
(2) 以ClassID为分组依据,显示每组的平均年龄
![](https://img.haomeiwen.com/i14519622/ea18725ba995434b.png)
(3) 显示第2题中平均年龄大于30的分组及平均年龄
![](https://img.haomeiwen.com/i14519622/078128c926b0783c.png)
(4) 显示以L开头的名字的同学的信息
![](https://img.haomeiwen.com/i14519622/ef938651d72d660f.png)
2、数据库授权magedu用户,允许192.168.1.0/24网段可以连接mysql
![](https://img.haomeiwen.com/i14519622/44f9cd3acd1013d8.png)
![](https://img.haomeiwen.com/i14519622/f257867bfc32fff5.png)
3、总结mysql常见的存储引擎以及特点。
![](https://img.haomeiwen.com/i14519622/a69a5267df99acde.png)
1、 导入hellodb.sql生成数据库
(1) 在students表中,查询年龄大于25岁,且为男性的同学的名字和年龄
(2) 以ClassID为分组依据,显示每组的平均年龄
(3) 显示第2题中平均年龄大于30的分组及平均年龄
(4) 显示以L开头的名字的同学的信息
2、数据库授权magedu用户,允许192.168.1.0/24网段可以连接mysql
3、总结mysql常见的存储引擎以及特点。
本文标题:第十四周
本文链接:https://www.haomeiwen.com/subject/pmhxvhtx.html
网友评论