I have a XML document with items that I want to store in my Oracle DB. What is the recommended way to do a update (if the item exists) or insert (if the item does not exists) with the database adapter?
Best regards Björn Jansson
Pieter -> RE: Update / Insert (30 September 2004)
Hallo. You have 2 options for doing this.
You can use a Stored Procedure to perform the Insert/Update Lgogic. But the limitations on Parameters may cause an issue with your XML Document. The other option would be to first do a select from the Orchestration, get a count of the returned records and then either perform the Insert or Update.