CREATE VIEW hd3_b
AS
SELECT CASE
WHEN hd.country_visited = 'USA' THEN 'AMERICA'
WHEN hd.country_visited = 'India' THEN 'ASIA'
WHEN hd.country_visited = 'CHINA' THEN 'ASIA'
WHEN hd.country_visited = 'SPAIN' THEN 'EUROPE'
ELSE hd.country_visited
END AS hd.COUNTRY_VISITED
FROM holiday_details hd
UNION
SELECT hd.holiday_desc,
holiday_code
FROM holiday_details hd
这是我目前拥有的代码,我不断收到 FROM 缺失错误或 MISSING KEYWORD 错误。
任何人都可以在我的语法中看到任何令人眼花缭乱的错误吗?