📜  一次查询中的两个选择 - SQL 代码示例

📅  最后修改于: 2022-03-11 15:04:52.930000             🧑  作者: Mango

代码示例1
(SELECT
    name, games, goals
    FROM tblMadrid WHERE name = 'ronaldo')
 UNION
 (SELECT
    name, games, goals
    FROM tblBarcelona WHERE name = 'messi')
ORDER BY goals;