玉溪和芙蓉王口感差距:帮我解释一下这条SQL语句的意思。
来源:百度文库 编辑:中科新闻网 时间:2024/05/08 21:01:17
select 省份,count(0)
from (select 省份
from taba
union all
select 省份
from tabb)a
group by 省份
括号)a是什么意思?
from (select 省份
from taba
union all
select 省份
from tabb)a
group by 省份
括号)a是什么意思?
a是一个临时表,执行()中得查询是结果就放在临时表a中
a是前面的(select 省份 from taba union all select 省份 from tabb)所得出的记录集的别名