摘要:
在项目中经常用到排序和分页,mysql中这两个关键词在查询的时候,也经常用到,现场来玩一下 先试试Order by: 故名思意,order by的意思就是排序,那么就要配合ASC和DESC来使用,ASC是升序,DESC是降序 同样还是成绩表,查出成绩,使用降序排列 select res.studen 阅读全文
摘要:
MySQL的join关键词: join,顾名思义,就是联合,加入的意思,如下图。 先建表 student表: SET NAMES utf8mb4;SET FOREIGN_KEY_CHECKS = 0; -- Table structure for student-- DROP TABLE IF EX 阅读全文
摘要:
MYSQL的常用关键词: distinct:去重 select distinct res.studentno FROM result res; between关键词:在什么什么之间 select res.studentresult FROM result res where res.studentr 阅读全文