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

Home -> Community -> Usenet -> c.d.o.misc -> Re: SQL+ question

Re: SQL+ question

From: ianal Vista <ianal_vista_at_hotmail.com>
Date: Sat, 03 Jun 2006 19:40:49 GMT
Message-ID: <Xns97D7811929E3Cianalvistahotmailcom@70.169.32.36>


"dean" <deanbrown3d_at_yahoo.com> wrote in news:1149363216.064486.163250 @y43g2000cwc.googlegroups.com:

> Hello all,
>
> 9.2i/10g on Windows.
>
> I use select statements in an application, which use bind variables.
> Sometimes I like to take a look at the result set by inspecting the sql
> string in the code at runtime and then pasting it into sql+. But I have
> to declare and assign the variables before I can run it:
>
> var Col1 number;
> exec :Col1 := 1234;
> select * from T where Col1 = :Col1;
>
> Is there a short cut to this? Is it possible to use 'USING' (or
> something else) here and not declare the variables?
>
> Thanks all,
>
> Dean
>
>

Did you ever bother to try something like the following:

select * from T where Col1 = 1234; Received on Sat Jun 03 2006 - 14:40:49 CDT

Original text of this message

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