on-internet
← Community

Converting function from Oracle to PostgreSQL

Stack Overflow ·

I am working on converting something from Oracle to PostgreSQL. In the Oracle file there is a function: instr(string,substring,starting point,nth location) or as it is in my file instr(string,chr(10),instr(string,substring),1) In PostgreSQL this does not exist, so I looked up an equivalent function. I found: position(substring in string) but this does not allow the starting position and the nth location parameters. Is there anyway to make this function start at a given point? Or is there a better function to use in PostgreSQL where I can specify starting position and the nth location? This wou

Comments

Sign in or sign up to comment and upvote.

No comments yet.