7.rank 相关函数是无参并且跟over(…order by…desc)
连用多条件连接,可以在on后加条件,看一下示例,
- 41、查询课程不同、成绩相同的学生的学生编号、课程编号、学生成绩
select distinct t1.* from sc t1join sc t2 on t1.s_id=t2.s_id and t1.c_id<>t2.c_id and t1.score=t2.score;
set sql_safe_updates=0;把批量修改内容的权限打开。
select * from a full join b;MySQL可以查出记录呀且没有报错。为什么网上都说mysql不支持full join呢?