tags:

views:

4615

answers:

1

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 get the INSTR function to do this or is there another function?

Thanks James

+10  A: 

Use -1 as the start position:

INSTR("JD-EQ-0001", "-", -1)
jim0thy