摘要: -- WHERE SELECT studentno,studentresult FROM result -- 查询成绩在95-100之间的数据 SELECT studentno,studentresult FROM result WHERE studentresult>=95 AND student 阅读全文
posted @ 2021-11-08 21:09 KuangPlus 阅读(153) 评论(0) 推荐(0)
摘要: -- 查询全部 SELECT * FROM student -- 查询指定字段 SELECT sex,phone FROM student -- 给字段起别名 SELECT sex AS 性别,phone AS 电话 FROM student -- 函数 CONCAT(str1,str2,...) 阅读全文
posted @ 2021-11-08 20:54 KuangPlus 阅读(244) 评论(0) 推荐(0)
摘要: -- 查询一下有哪些同学参加了考试 SELECT * FROM result -- 查询全部学生考试成绩 SELECT studentno FROM result -- 查询哪些同学参加了考试 SELECT DISTINCT studentno FROM result -- 发现重复数据,去重 SE 阅读全文
posted @ 2021-11-08 20:54 KuangPlus 阅读(30) 评论(0) 推荐(0)