Re: SQL Query

From: David Scott <dscott_at_is.net>
Date: 1996/05/18
Message-ID: <dscott-1805961535500001_at_dscott.is.net>#1/1


In article <319A4927.41C67EA6_at_openmarket.com>, Shuzi Chen <chen_at_openmarket.com> wrote:

> How to write the SQL like the following?
>
> select * from test where name like 'hel[ply]'
> it will return the records which name is help, hell or hely.
> Sybase can do exactly like the above. I do not think the Oracle supports
> the [].

If you wish to return ONLY the 3 values listed, try:   select * from test where name in ('help','hell','hely') This should give you what you want if you're not looking for wildcard matches.


David Scott                        ...how can I keep from singing?
                bumper snicker: My other guitar is a Martin (D16H)
email: dscott_at_is.net
Received on Sat May 18 1996 - 00:00:00 CEST

Original text of this message