Forums before death by AOL, social media and spammers... "We can't have nice things"
|    comp.databases.oracle    |    Overblown overpriced overengineered SHIT    |    2,288 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 1,852 of 2,288    |
|    Clouds® to All    |
|    membership operator with pattern matchin    |
|    20 Oct 04 09:32:30    |
   
   From: DOCloudsNOT@hardwareSPAM-spot.com   
      
   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®   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   
|
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca