[英]Hash_md5() in not working while merging in Exasol
I'm trying to merge and update target table based on Hash_val.我正在尝试基于 Hash_val 合并和更新目标表。 but i'm getting below error.
但我遇到了错误。 Such merge condition is not supported.
不支持这种合并条件。 below is the code.
下面是代码。
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'
What about breaking up the join condition of the merge into it's subparts将合并的连接条件分解成它的子部分怎么样
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'
This should effectively do the same as a join on a concat-single criterion.这应该与 concat-single 标准上的连接有效地执行相同的操作。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.