-1

How do you write a query with "multiple string/substring matching"?

Example:

SELECT * FROM table WHERE column LIKE ('%BD%','%IND%','%PK%','%USA%')
2

2 Answers 2

2

Try this:

select * from table where column like '%BD%' or column like '%IND%'or column like'%PK%' or column like'%USA%'
Sign up to request clarification or add additional context in comments.

Comments

0
select * from table 
 where regexp_like(column,'BD|IND|PK')

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.