Can the "IN" operator use LIKE-wildcards (%) in Oracle?

Matt picture Matt · Mar 2, 2012 · Viewed 120.7k times · Source

I have searched this question, and found an answer in MySQL but this is one of those incidents where the statement fails to cross over into Oracle.

Can I use wildcards in "IN" MySQL statement?
pretty much sums up my question and what I would like to do, but in Oracle

I would like to find the legal equivalent of

Select * from myTable m
where m.status not in ('Done%', 'Finished except%', 'In Progress%')

Thanks for any help

Answer

CFL_Jeff picture CFL_Jeff · Mar 2, 2012
Select * from myTable m
where m.status not like 'Done%' 
and m.status not like 'Finished except%'
and m.status not like 'In Progress%'