哪錯了? select score1.學號,score1.課程號,course.成績 from score1,course where score1.課程號=course
- 2022-09-24
select score1。學號,score1。課程號,course。成績 from score1,course where (score1。學號=course。學號) and score1。課程號=course
select count(*) as 總人數
from(
select 學號 from student
union
select 學號 from score
)x
要給派生表取別名。
或:
select count(*) as 總記錄數,count(distinct 學號) 總人數
from(
select 學號 from student
union all
select 學號 from score
)x
下一篇:人的主要骨骼是有哪些組成?