在Oracle中查找字符串的最后一个索引(Finding last index of a string in Oracle)
我需要在另一个字符串中找到字符串的最后一个索引(例如“ - ”)(例如Oracle(版本8i)中的“JD-EQ-0001”)。有没有办法用INSTR或其他函数?
I need to find the last index of a string (e.g. "-") within another string (e.g. "JD-EQ-0001" in Oracle (version 8i). Is there a way to do this with INSTR or another function?
最满意答案
使用-1作为起始位置:
INSTR('JD-EQ-0001', '-', -1)Use -1 as the start position:
INSTR('JD-EQ-0001', '-', -1)更多推荐
发布评论