Oracle Stored Procedures - Out Vars

V

Vance Heron

Can anyone help me with the syntax for retriving an 'out'
variable from an Oracle Stored Procedure?

I'm able to succesfully call several stored procedures,
and can pass values in - both by putting the argument
into the SQL statment, or by using a ? in the stmt
then passing the value when I execute it, but have
not been able to retrieve the 'out' value.

I've tried sth.fetch()[0] ,and sth.get()

Any help will be appreciated.

Thanks,
Vance
 
K

KUBO Takehiro

Hi,

Vance Heron said:
Can anyone help me with the syntax for retriving an 'out'
variable from an Oracle Stored Procedure?

I'm able to succesfully call several stored procedures,
and can pass values in - both by putting the argument
into the SQL statment, or by using a ? in the stmt
then passing the value when I execute it, but have
not been able to retrieve the 'out' value.

I've tried sth.fetch()[0] ,and sth.get()

ruby-dbi doesn't support out parameters.
Use a driver specific function:
sth.func:)bind_value, 0)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top