I compared string functions in 5 different RDBMS: PostgreSQL, MySQL, Oracle, SQL Server and SQLite, and also in the ANSI SQL Standard. There are large differences among different RDBMS, and I propose to reduce them a little bit.
The SQL Standard defines, among others, these functions operating on text strings:
SUBSTRING(s FROM start [FOR length])
POSITION(s2 IN s)
They are already implemented by PostgreSQL and MySQL. I propose to implement these 2 functions in Oracle as well. Currently, Oracle implements the following functions that work identically to the SQL Standard:
SUBSTR(s, start [,length])
INSTR(s, s2)
For more information about comparing implementations of the scalar functions, click here: https://github.com/iwis/SQL-notes/blob/master/Functions.txt