When you use :CURRENT_LINE_ID NUMBER
, OCI
looks for that bind variable in your host program only. Here C++
. So you should have had this variable declare in your c++ program in a exec declare section
or wherever it should be. When you run anything in SQL developer
, when encountered a :variable
, it blindly prompts the user to enter the value for it, so dont mix it up with the way it do and the oci libraries
work.
In your case finally, when a PL/SQL
is used and variable is declared there, you can always refer it without colon
. If you want to bind it from the hostprogram, you have declare it as host variable
. PRO*C
supports that. not sure about c++. pro*c is nothing but a embedded sql
in C
provided by oracle
.