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: sql*plus

Re: sql*plus

From: <bdbafh_at_gmail.com>
Date: 13 Jan 2006 09:31:59 -0800
Message-ID: <1137173519.380315.165870@g43g2000cwa.googlegroups.com>


A snippet from the AskTom site:
http://asktom.oracle.com/pls/ask/f?p=4950:8:::::F4950_P8_DISPLAYID:110612348061

Lexical February 25, 2002
Reviewer: Steve from Blackburn

Couldn't you just use a lexical parameter within your report

select * from t where x in ( &that_variable );

e.g.

Declare you user parameter as normal give it a default value lets say ('x') just
so it will compile, and then in a After parameter form trigger , just assign the
dynamic value you talked about to the lexical parameter. The only difference in
the SQL would be to use the &that_variable instead of the :that_variable.

Followup:

does not use bind variables. I despise code that does not use bind variables as
the is the best way to limit your scalability, flood your shared pool, kill your
repsonse time and fail.

Use bind variables! Received on Fri Jan 13 2006 - 11:31:59 CST

Original text of this message

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