You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I see there's "replace" statement which is related, yet it might be a bit different from MERGE.
I've implemented a small function for MERGE for Oracle DB (I can contribute it or something like that).
I use it instead of batchInsert as it enables me to automatically insert or update the rows.
The caveat is that MERGE in Oracle does not support "return generated keys" (there's no syntax for RETURNING), and I see your batchReplace uses return generated keys by default.
WDYT? (the code below can be used under Apache 2.0 if you wonder)
Hi,
I see there's "replace" statement which is related, yet it might be a bit different from MERGE.
I've implemented a small function for MERGE for Oracle DB (I can contribute it or something like that).
I use it instead of
batchInsert
as it enables me to automatically insert or update the rows.The caveat is that MERGE in Oracle does not support "return generated keys" (there's no syntax for RETURNING), and I see your
batchReplace
usesreturn generated keys
by default.WDYT? (the code below can be used under Apache 2.0 if you wonder)
The text was updated successfully, but these errors were encountered: