According to the ANSI SQL-1992 standard, page 132, this is the syntax for the ANSI substring function:
<character substring function> ::=
SUBSTRING <left paren> <character value expression> FROM <start position>
FOR <string length> ] <right paren>
A quick test in SQL developer on an oracle 10g schema:
SELECT SUBSTRING('ASDF' FROM 1 FOR 1) FROM DUAL;
Results in:
ORA-00907: missing right parenthesis
00907. 00000 - "missing right parenthesis"
*Cause:
*Action:
Error at Line: 1 Column: 28
Does this mean Oracle 10g does not comply with this particular ANSI standard?
I simply would like to use an ANSI standard substring function instead of a vendor specific one.