在Oracle中查找字符串的最后一个索引


71

我需要-在另一个字符串(例如JD-EQ-0001在Oracle的SQL(版本8i)中)中找到一个字符串(例如)的最后一个索引INSTR()

Answers:


147

使用-1作为起始位置:

INSTR('JD-EQ-0001', '-', -1)
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.