Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: passing several columns into single array using RETURNING clause in java
Tanel,
I only put sql in directly in jdbc if it is extremely simple, =
otherwise I'm using plsql in jdbc.
I'm not sure how to make a prepared statement accept an OUT parameter =
( I believe the values in a RETURNING clause=20
must be treated like OUTs in jdbc ).
I was under the impression you could only do it with a callable =
statement.
But, I'm no java pro, so I could be wrong. Maybe metalink?
Is the requirement to do this in JDBC, because this would be a breeze =
in pro*c.
-----Original Message-----
From: Tanel P=F5der [mailto:tanel.poder.003_at_mail.ee]=20
Sent: Tuesday, August 03, 2004 10:30 AM
To: oracle-l_at_freelists.org
Subject: Re: passing several columns into single array using RETURNING =
clause in java=20
Thanks Anthony!
Is there a way to do this with a single update called from JDBC, without = PL/SQL as well? I know it's possible with OCI, but I'm not that familiar = with Java, so maybe anyone of you can give me some pointers...
Thanks,
Tanel.
> Tanel,
>
> I'd use a callable statement. Also, I'm assuming later on in the=20
> code =3D you may want to treat the=3D20
> array like a table, ie, select * from table( :array );, so use an =
=3D=20
> array of objects instead
> of a composite associative array.
-- Archives are at http://www.freelists.org/archives/oracle-l/ FAQ is at http://www.freelists.org/help/fom-serve/cache/1.html ----------------------------------------------------------------- ---------------------------------------------------------------- Please see the official ORACLE-L FAQ: http://www.orafaq.com ---------------------------------------------------------------- To unsubscribe send email to: oracle-l-request_at_freelists.org put 'unsubscribe' in the subject line. -- Archives are at http://www.freelists.org/archives/oracle-l/ FAQ is at http://www.freelists.org/help/fom-serve/cache/1.html -----------------------------------------------------------------Received on Tue Aug 03 2004 - 10:22:15 CDT
![]() |
![]() |