Hash_md5() 在 Exasol 中合并时不工作

Hash_md5() in not working while merging in Exasol

我正在尝试根据 Hash_val 合并和更新目标 table。 但我遇到了错误。 不支持这样的合并条件。 下面是代码。

merge into table1 as t1 
using table2 as t2
on hash_md5(t1.col1||t1.col2||t1.col3)=hash_md5(t2.col1||t2.col2||t2.col3)
when matched then
update t1.col4='XYZ' 

如何将合并的连接条件分解成它的子部分

merge into table1 as t1 
using table2 as t2
on t1.col1=t2.col1
and t1.col2=t2.col2
and t1.col3=t2.col3

when matched then update set t1.col4='XYZ'  

这应该有效地执行与 concat-single 标准上的联接相同的操作。