Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/swift/20.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Sql 在Exasol中合并时,哈希md5()不起作用_Sql_Merge Statement_Exasol - Fatal编程技术网

Sql 在Exasol中合并时,哈希md5()不起作用

Sql 在Exasol中合并时,哈希md5()不起作用,sql,merge-statement,exasol,Sql,Merge Statement,Exasol,我正在尝试基于哈希值合并和更新目标表。 但我的错误率越来越低。 不支持这种合并条件。 下面是代码 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

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

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单一条件上的连接有效地执行相同的操作。

是的,我可以这样做,但我想知道为什么在连接时它不起作用。