1

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?

2

1 Answer 1

10

Using OR would be the way to go, yes.

1
  • 8
    Possibly the shortest valid answer the site will ever see.
    – Philᵀᴹ
    Apr 15, 2013 at 18:14

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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