dbTalk Databases Forums  

membership operator with pattern matching

comp.databases.oracle comp.databases.oracle


Discuss membership operator with pattern matching in the comp.databases.oracle forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
CloudsŪ
 
Posts: n/a

Default membership operator with pattern matching - 10-20-2004 , 02:32 AM






Hi all,

Just wondering if it is possible to compare against multiple values _with_
pattern matching?

Example:

SELECT *
FROM dog
WHERE NAME LIKE 'A%Z'
OR NAME LIKE 'B___'
OR NAME LIKE '%C%'

turns into something like this

SELECT *
FROM dog
WHERE NAME IN('A%Z', 'B___', '%C%')

Of course last query won't work, but is there something like this that
doesn't need the "OR"s from the first query?

Thanks for any hints....

--
CloudsŪ



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.