Oracle PL/SQL procedure – To return CLOB variable with XML data as OUT parameter

Advertisements I have the following data in XML format <OutputParameters xmlns=http://xmlns.oracle.com/cloud/adapter/ xmlns:xsi=http://www.test.org/1998/XMLSchema-instance> <Header> <Header_item> <TRANSACTION_NUMBER>YSCPQ_9876</SOURCE_TRANSACTION_NUMBER> <TRANSACTION_SYSTEM>OPS</SOURCE_TRANSACTION_SYSTEM> <Lines> <lines_item> <TRANSACTION_ID>YSCPQ_9876</SOURCE_TRANSACTION_ID> <TRANSACTION_LINEID>1</SOURCE_TRANSACTION_LINEID> </lines_item> <lines_item> <TRANSACTION_ID>YSCPQ_9876</SOURCE_TRANSACTION_ID> <TRANSACTION_LINEID>2</SOURCE_TRANSACTION_LINEID> </lines_item> </Lines> </Header_item> </Header> </OutputParameters> I need a procedure to store this XML output in a CLOB variable and return it as OUT parameter. Any help would be much appreciated. >Solution… Read More Oracle PL/SQL procedure – To return CLOB variable with XML data as OUT parameter

How to handle "The given header was not found" when paging records in c# API GET request?

Advertisements I’m requesting data from an API that requires paging records based on a custom header called "cursor". Only 100 records may be retrieved per call and as such I’ve created a while loop to execute. The loop functions… until it doesn’t. Once all records are paged, the headers get dropped and my program errors… Read More How to handle "The given header was not found" when paging records in c# API GET request?

How to execute a piece of code for each element of the result of a dynamic query in PostgreSQL?

Advertisements I have a dynamic query in my PostgreSQL function: execute format(‘select something from %’, table_name) I want to run some code for every record returned by the above statement. How can I do this? My first idea is as follows. I need to do something like this: execute format(‘select something from %’, table_name) into… Read More How to execute a piece of code for each element of the result of a dynamic query in PostgreSQL?

Having Challenges with Node.js Update SQL for Arithemetics

Advertisements When I do this update fasta_users set balance = balance + 7000 where id =1; it works fine, No challenge, but when i want to work on it programmatically, it tells me amount has to be a column, i do not understand why it behaves so. My code looks thus : app.put(‘/api/v1/user/fundWallet’,async function(req,res,next){ try… Read More Having Challenges with Node.js Update SQL for Arithemetics