在Exasol中合并时Hash_md5无法正常工作

问题描述

我正在尝试基于Hash_val合并和更新目标表。 但我越来越错误不支持这种合并条件。 下面是代码

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标准进行联接一样有效。