Regular Expressions _# at end of string

后端 未结 2 513
梦谈多话
梦谈多话 2021-01-16 11:38

I am using the REGEXP_LIKE function in Oracle 10g to find values in a column with a suffix of _#(like _1, _2 etc). I can find _# in any part of the value with the query belo

2条回答
  •  终归单人心
    2021-01-16 12:27

    No need to use reg exps.

    select * from table where substr(column,-2) between '_0' and '_9';
    

提交回复
热议问题