I am trying to do the following in SQL* PLUS in ORACLE.
-Create a variable -Pass it as output variable to my method invocation -Print the value from output variable
I get the error "undeclared variable" error. I am trying to create a variable that persists in the session till i close the SQL*PLUS window.
variable subhandle number;
exec MYMETHOD -
(CHANGE_SET => 'SYNC_SET', -
DESCRIPTION => 'Change data for emp', -
SUBSCRIPTION_HANDLE => :subhandle);
print subhandle;