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

Home -> Community -> Mailing Lists -> Oracle-L -> IN MISTERY

IN MISTERY

From: sergio <smoriano_at_sicon.net>
Date: Mon, 15 May 2000 16:09:21 +0200
Message-Id: <10498.105645@fatcity.com>


 Hi all

 I have the next query with the in clause, and it doesn´t works, any idea?.

 I f i execute the query,

    select'''||replace(tipos, ', ' , ''', ''')||'''' from lista_pautas where id_pauta='6'
i get the result:

   'palabras', 'negritas', 'sin cargo breves'

With the query,

    select lista_tipo_publi from lista_tipo_publi where lista_tipo_publi in ('palabras', 'negritas', 'sin cargo breves') i get the result:

   4
   9
   50

But if I try with the quey:

    select lista_tipo_publi from lista_tipo_publi where lista_tipo_publi in
(select'''||replace(tipos, ', ' , ''', ''')||'''' from lista_pautas where id_pauta='6')

  I get 0 rows as result. Any idea about that. Is the IN clause working wrong.

  Is there another way to do the same query without the IN clause.

Thanks for your responses, Received on Mon May 15 2000 - 09:09:21 CDT

Original text of this message

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