Can't we use [specifier] with like operator with Oracle?

后端 未结 1 1537
旧时难觅i
旧时难觅i 2021-01-25 10:17

When using the LIKE operator in oracle for matching anyone of the characters can\'t I use [specifier] For eg. Find out the Customer\'s name starting with either \'s\' o

1条回答
  •  花落未央
    2021-01-25 10:58

    No, LIKE does not do that.

    But you can use regular expressions.

    select * from emp where REGEXP_LIKE (customer, '^[sr].*');
    

    0 讨论(0)
提交回复
热议问题