Bonjour !

Une simple petite question. J'aimerai savoir s'il existe sous oracle une fonction équivalente à "locate" sous mysql.
Et si oui, quel est son nom ?

Merci d'avance ;-)

Pour info la défintion de locate sur le site de mysql :
LOCATE(substr,str), LOCATE(substr,str,pos)

The first syntax returns the position of the first occurrence of substring substr in string str. The second syntax returns the position of the first occurrence of substring substr in string str, starting at position pos. Returns 0 if substr is not in str.

mysql> SELECT LOCATE('bar', 'foobarbar');
-> 4
mysql> SELECT LOCATE('xbar', 'foobar');
-> 0
mysql> SELECT LOCATE('bar', 'foobarbar', 5);
-> 7

This function is multi-byte safe, and is case-sensitive only if at least one argument is a binary string.