如何解决Snowflake中意外的“选择”错误

时间:2019-12-27 12:34:22

标签: snowflake-data-warehouse

代码:

Delete from Table1
Where(A,B,C)
IN
(Select A,B,C From Table2);

如果有匹配的记录,则应从表1中删除记录。 当我执行上面的代码时,出现类似意外选择和意外From错误的错误

1 个答案:

答案 0 :(得分:2)

我认为您正在尝试执行以下操作:

delete from table1 using table2 
where 
  table1.a = table2.a and
  table1.b = table2.b and
  table1.c = table2.c