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: parameters in query

Re: parameters in query

From: DA Morgan <damorgan_at_x.washington.edu>
Date: Fri, 08 Apr 2005 15:02:22 -0700
Message-ID: <1112997520.564158@yasure>


Tom wrote:
> i have lot of problems with letter query:
>
>
> select * from order where id_order in (1,5,9)
>
> oracle execute this query without problems, but
>
> select * from order where id_order in (:id_order)
>
> parametar is 1,5,9 oracle returns error
>
> any idea??

If I understand what you are trying to do there is a very simple solution.

http://www.psoug.org
click on Morgan's Library
click on Conditions
scroll down to the "Complex IN Demo" using CAST

-- 
Daniel A. Morgan
University of Washington
damorgan_at_x.washington.edu
(replace 'x' with 'u' to respond)
Received on Fri Apr 08 2005 - 17:02:22 CDT

Original text of this message

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