MySQL Forums
Forum List  »  Oracle

Re: to solve the question
Posted by: edson lara
Date: July 11, 2007 02:52PM

a workaround:

substring_index is a version of what you need but not the same functionality, to achieve the same, just add length and +1


select length(substring_index('www.yoursite.com', '.', 2)) + 1 from dual;
13

select INSTR('www.yoursite.com', '.', 1, 2) from dual;
13



Edited 1 time(s). Last edit at 07/11/2007 02:59PM by edson lara.

Options: ReplyQuote


Subject
Views
Written By
Posted
20692
March 17, 2006 03:22AM
6702
March 17, 2006 07:34AM
3150
March 18, 2006 09:01PM
3897
June 20, 2007 02:54AM
3764
June 20, 2007 04:05AM
Re: to solve the question
3914
July 11, 2007 02:52PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.