Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: Search in string from right
Thanks Sybrand!
It works fine by setting a negative position as the start parameter:
SELECT SUBSTR(RESOURCESTRING,1,INSTR(RESOURCESTRING , '-', -1)-1)
FROM FSA.ACCESSLOG
WHERE INSTR(RESOURCESTRING , '-')>0 AND TYPE=2 AND RESOURCETYPE=1
Happy, happy, happy!
Received on Tue Apr 18 2006 - 06:31:13 CDT
![]() |
![]() |