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

Home -> Community -> Mailing Lists -> Oracle-L -> Re: Oracle Reports

Re: Oracle Reports

From: William Beilstein <BeilstWH_at_obg.com>
Date: Thu, 17 Aug 2000 15:46:51 -0400
Message-Id: <10592.114897@fatcity.com>


replace your query with

SELECT TEST_NUM
from TABLE
where TEST_NUM in (&P_TEST_NUM)

This will be expanded at query time to include the bind variable P_TEST_NUM= . If you do this, you will have to make sure the user enters the values in = the following form

10,11,12,13,40,50

>>> "Peter Hazelton" <peterhazelton_at_hotmail.com> 08/17/00 03:46PM >>>
I have a parameter set up on my report. Call it :P_TEST_NUM.

My SQL query will be:

SELECT TEST_NUM
from TABLE
where TEST_NUM =3D :P_TEST_NUM

I want this parameter to accept several different numbers such as 1234,=20 1245, 1267 etc. I want this so that we don't have to run the report 20 = times=20
for 20 different numbers, we just paste in a list of numbers and the = report=20
runs for that list.

Can this be done? If so, how and what is the syntax??

Thanks
Peter



Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com=20=

--=20
Author: Peter Hazelton
  INET: peterhazelton_at_hotmail.com=20

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). Received on Thu Aug 17 2000 - 14:46:51 CDT

Original text of this message

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