Learn XQuery |
Home:Learn XQuery:White Papers:ACORD:Updating a Relational Database Updating a Relational DatabaseOnce we know that the address change request message (tc=181) is valid (see Validating Update Requests), we need to process that request and commit any changes to our relational database. DataDirect XQuery has the ability to perform updates against relational data (http://www.xquery.com/examples/updates/). The XQuery implementing that update operation is shown here (click here to open the XQuery document): declare namespace tx="http://ACORD.org/Standards/Life/2"; The example:update-181() function is fairly simple, and it relies on the ddtek:sql-update() function that allows rows in relational tables to be modified directly from your XQuery: declare updating function example:update-181($request as element(tx:TXLifeRequest)) { $newAddress/tx:Line1, What's NextGo to Handling Complex Update Requests to see how you can use DataDirect XQuery™ to manage update requests that require changes to multiple tables. |
DataDirect XQuery FAQThis informative DataDirect XQuery® FAQ answers frequently-asked questions about DataDirect XQuery® , including questions about performance, scalability, use-cases, resources, and more. If you're more of a hands-on learner, then download a free copy and start exploring DataDirect XQuery® today! New Case StudyGevity produces sales proposals in real time using DataDirect XQuery® . See how Gevity uses DataDirect XQuery® to combine Web service data from SalesForce.com with relational data in Oracle in a pricing engine for HR management. |





