H2 doesn't implement INSTR the same way as Oracle.

You'd need to implement a FUNCTION ALIAS and write your own method in Java.
http://www.h2database.com/html/grammar.html#create_alias

On 2012-02-21 14:54, Dani wrote:
Hey everybody,

can anyone provide an approach to extract the nth appearance of a
search string within a string!?

e.g: instr('test H2 database test', 'e', 1, 2)  would return 16; the
second occurrence of 'e'

H2: INSTR(string, searchString, [, startInt])
possible parameter: [, nth_appearance] of searchString

see also occurance: 
http://docs.oracle.com/cd/B28359_01/olap.111/b28126/dml_functions_1103.htm


Dani


--
You received this message because you are subscribed to the Google Groups "H2 
Database" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/h2-database?hl=en.

Reply via email to