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: Transform text for IN clause?

Re: Transform text for IN clause?

From: DA Morgan <damorgan_at_x.washington.edu>
Date: Wed, 09 Mar 2005 15:32:35 -0800
Message-ID: <1110410962.453591@yasure>


bd wrote:

> You could write a function like...
>
>
> -- pseudo code
> create function udtTheFunction( @variable varchar(1000) )
> returns @valuesTable table
> (
> aValue varchar(50)
> )
> as
> begin
> while (get position of character)
> begin
> insert @valuesTable values( @strValue )
> find next character
> end
>
> return
> end
>
>
> your select could be:
>
> SELECT * FROM x
> WHERE c IN (SELECT * FROM udtTheFunction(@variable))
>
>
> Bryce

This is c.d.oracle.server. What database is it you think this code will run on? Certainly not Oracle.

-- 
Daniel A. Morgan
University of Washington
damorgan_at_x.washington.edu
(replace 'x' with 'u' to respond)
Received on Wed Mar 09 2005 - 17:32:35 CST

Original text of this message

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