Finding last index of a string in Oracle

前端 未结 1 1986
悲&欢浪女
悲&欢浪女 2020-12-05 12:45

I need to find the last index of a string (e.g. -) within another string (e.g. JD-EQ-0001 in Oracle\'s SQL (version 8i). Is there a way t

相关标签:
1条回答
  • 2020-12-05 13:23

    Use -1 as the start position:

    INSTR('JD-EQ-0001', '-', -1)
    
    0 讨论(0)
提交回复
热议问题