美容院卫生要求:帮我解释一下这条SQL语句的意思。
来源:百度文库 编辑:神马品牌网 时间:2024/04/30 10:31:58
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)所得出的记录集的别名