select sno from sc a 什么意思

来源:百度知道 编辑:UC知道 时间:2024/07/05 04:51:03
(1)select * from s inner join (select sno from sc where cno='c1' or cno='c2' group by sno having count(*)=2)a on a.sno=s.sno
(2)select sno from sc a where cno='c1' and scgrade >( select scgrade from sc where sno=a.sno and cno='c2') 2条sql语句中的a什么意思,区别??

a 是做为表的别名
第一句:(select sno from sc where cno='c1' or cno='c2' group by sno having count(*)=2)子查询的结果做为一个表,称为a。
第二句,sc的别名称为a,a就是指sc。某些SQL语句必须用别名,例如第一句,否则不能执行。

select from
从中选择
例句:
1.Please select your destination.
请选择您的目的地。
2.On select occasions. What else?.
在特别场合做,还有呢?

身东西啊