Database Administrators Stack Exchange is a question and answer site for database professionals who wish to improve their database skills and learn from others in the community. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How do I write a query for a Oracle database when I have several "like" values for the same column (in my example data "name")?

My example data for table "address":

name like "John"
name like "Jon%"
name like "Jonathan"
name like "Frank"

Is there something like IN() with LIKE in Oracle or do I have to write it for each value OR separated?

share|improve this question
Oracle has REGEXP_LIKE (…) . – a1ex07 Apr 15 '13 at 17:28
@a1ex07 thank you for the notice, I will keep it in my mind. But I'm looking for a more common solution. – powtac Apr 15 '13 at 17:32

Using OR would be the way to go, yes.

share|improve this answer
Possibly the shortest valid answer the site will ever see. – Phil Apr 15 '13 at 18:14

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.