Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: [newbie] bind variables

Re: [newbie] bind variables

From: Sybrand Bakker <postbus_at_sybrandb.demon.nl>
Date: Wed, 27 Aug 2003 11:54:38 +0200
Message-ID: <vkp0d1tdsilrb1@corp.supernews.com>

"Franz" <franz_at_mail.com> wrote in message news:q4%2b.268595$Ny5.8263211_at_twister2.libero.it...
> Hi all,
> I'm using a SQL statement from inside a Java function.
> The statement is a PreparedStatement, that is:
>
> select * from table1 where field1 = ?
>
> then in the code I set at runtime "field1" with the desired value.
> Now my question is: will Oracle use bind variables when I issue a
statement
> like
> this ? I'd like to avoid to have my statement re-parsed every time.
>
> A further question: how do you check on the DB that a statement has been
> parsed ?
>
> Thanks a lot
> Frank
>
>
>
>

1 Oracle will use bind variables
2 You don't need to, as you have control over that yourself.

-- 
Sybrand Bakker
Senior Oracle DBA

to reply remove '-verwijderdit' from my e-mail address
Received on Wed Aug 27 2003 - 04:54:38 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US