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: using LIKE with IN

Re: using LIKE with IN

From: mgumbs <mgumbsNOmgSPAM_at_hotmail.com.invalid>
Date: Thu, 10 Feb 2000 01:31:41 -0800
Message-ID: <0100fa37.6d2e6ba3@usw-ex0103-018.remarq.com>


If its only 2 searches you want

SELECT table_name,num_rows
FROM user_tables
WHERE table_name LIKE '%NS_'
OR table_name LIKE '%NA_%';

Dunno any other methods yet ;-(

M

In article <87srja$55s$1_at_nnrp1.deja.com>, cjamblues_at_my-deja.com wrote:
>Greetings --
>How can I combine LIKE and IN in the same sql statement:
>
>SELECT table_name,num_rows
>FROM user_tables
>WHERE table_name IN (LIKE('%NS_%",'%NA_%');
>
>Thanks,
>
>David J Jackson
>
>
>Sent via Deja.com http://www.deja.com/
>Before you buy.
>
>

Received on Thu Feb 10 2000 - 03:31:41 CST

Original text of this message

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