我在查询下面运行:
MERGE INTO college_for_mrg AS T USING college AS S ON clg_name = clg_name
WHEN MATCHED AND clg_id > 5
THEN UPDATE SET clg_loc = "ind"
WHEN NOT MATCHED
THEN INSERT VALUES(2,"sd","dsd","dsfs");
两个表都支持酸性。
我还在查询中尝试了表名database_name.table_name
,但仍然给出了同样的错误。
错误:FAILED:ParseException第3行:0无法识别附近的输入 'MERGE''INTO''college_for_mrg'
答案 0 :(得分:0)