关于SQL语句里面的A.XX,和B.select B.kecheng,B.score,B.xuehaofrom(select kecheng ,max(score) AS score from jiaScore group by kecheng) A,jiaScore Bwhere A.kecheng = B.kechengand A.score = B.score例如我这段数据库语句,A.kecheng和B.keche
来源:学生作业帮助网 编辑:作业帮 时间:2024/11/15 08:50:25
关于SQL语句里面的A.XX,和B.select B.kecheng,B.score,B.xuehaofrom(select kecheng ,max(score) AS score from jiaScore group by kecheng) A,jiaScore Bwhere A.kecheng = B.kechengand A.score = B.score例如我这段数据库语句,A.kecheng和B.keche
关于SQL语句里面的A.XX,和B.
select B.kecheng,B.score,B.xuehao
from(select kecheng ,max(score) AS score from jiaScore group by kecheng) A,jiaScore B
where A.kecheng = B.kecheng
and A.score = B.score
例如我这段数据库语句,A.kecheng和B.kecheng 中的AB都是代表着什么?
关于SQL语句里面的A.XX,和B.select B.kecheng,B.score,B.xuehaofrom(select kecheng ,max(score) AS score from jiaScore group by kecheng) A,jiaScore Bwhere A.kecheng = B.kechengand A.score = B.score例如我这段数据库语句,A.kecheng和B.keche
A,B代表from后面的查询结果作为临时表、A,B为临时表的名字;
A.kecheng和B.kecheng代表查询结果集(临时表)中对应的字段;
说直接就是起别名、便于输入语句简单.
B.kecheng=jiaScore.kecheng
A.kecheng=(select kecheng ,max(score) AS score from jiaScore group by kecheng).kecheng