数据库操作-3(单表查询)
1、检索:
1 | SELECT sno, sname, sex, age, dept FROM Student_2 |
2、去掉重复项:
1 | SELECT DISTINCT age FROM Student_2; |
3、确定范围:
1 | SELECT sno, sname, sex, age, dept FROM Student_2 |
4、模糊查询:
1 | SELECT sno, sname, sex, age, dept FROM Student_2 |
5、组合查询:
1 | SELECT sno, sname, sex, age, dept FROM Student_2 |
6、对结果排序:
1 | SELECT sno, sname, sex, age, dept FROM Student_2 |
7、函数:
1 | SELECT COUNT(*) FROM Student_2 |
8、分组查询:
1 | SELECT age, COUNT(*) FROM Student_2 |
数据库操作-3(单表查询)
https://zhangfuli.github.io/2020/10/24/数据库操作-3/