'How to assign the output return of a stored procedure called using C++ OCCI library

I have a stored procedure in Oracle DB, which has multiple input params and multiple-output params(int, int, char, sys ref cursor, sys ref cursor, sys ref cursor).

How do I assign this output to a variable in C++? I can assign the output variable of int like this:

int output_x = stmt->getInt(1)

How to do the same for cursor output param and print it on the screen?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source