我有两个使用UNION
.
SELECT
studentID
FROM
Student
UNION
SELECT
courseName
FROM
Course;
如果我想按 排序结果courseName
,我该怎么做?
如果我尝试以下操作,它会给我错误。
SELECT
studentID
FROM
Student
UNION
SELECT
courseName
FROM
Course
ORDER BY
courseName ;