Call an Oracle stored procedure via OCI and return the results with an out ref cursor in C++

前端 未结 1 572
温柔的废话
温柔的废话 2021-01-27 07:16

I would like to call an Oracle stored procedure from C++ using the OCI interface and iterate over the results using an out SYS_REF_CURSOR as a parameter to the procedure. I\'m n

相关标签:
1条回答
  • 2021-01-27 07:43

    You've set:

    sqlCharArray = "BEGIN FXT_TEST_CALL; END;"
    

    Which has no bind parameters; you're trying to set one, hence the error, and the procedure definition requires one. You need to call it as:

    sqlCharArray = "BEGIN FXT_TEST_CALL(:1); END;"
    
    0 讨论(0)
提交回复
热议问题