摘要:
题一: 分析: 要想对比不同行之间的数据大小,利用where不能直接对其进行对比,where只能对比不同列之间的数据,因此对同一个表join,将不同行对比的数据转换到列上。 select stu.* , c1.score as '01课程分数' ,c2.score as '02课程分数' from 阅读全文
摘要:
常见查询语句: select .... from .... where .. group by ... having ... order by .. limit... 输出 获取数据 过滤 分组 过滤 排序 限定个数 以上为书写顺序,以下为执行顺序: from -> where -> group b 阅读全文