Pro * C passing an array of parameters

I am trying to write Pro * C / C / C ++ code to handle such a request:

SELECT col1, col2, col3, col4 FROM table WHERE param IN(<set of values>); 

I can have a C structure to get the result and pass the individual parameters, but I can’t find a way to do this without explicitly specifying each value in the list.

Is there a way to pass a set as an array / vector / list?

+4
source share
2 answers

I asked this question on How to list variable expressions in a Pro * C request?

I came up with a rather awkward solution that works in my particular case. This may not apply to yours.

+2
source

Check in_list and in_list_v operations

-1
source

Source: https://habr.com/ru/post/1390484/


All Articles