How to match consecutive underscores using LIKE?
726603May 7 2010 — edited May 10 2010Maybe it's late in the day and I'm overlooking something obvious, but I can't seem to match consecutive underscores in a string using the LIKE operator:
select case when 'abc_d_ef' like '%\_\_%' escape '\' then 'what the...?' else 'good' end from dual
=>
what the...?
What am I missing here?
Thanks,
Ben