I was checking the PostgreSQL Manual the last days and I have noticed that substring() is explained there with substring(\'string\' FROM [int] FOR [int]).
substring(\'string\' FROM [int] FOR [int])
I
SUBSTRING(char_exp FROM start_position [FOR length]) syntax is part of SQL-92 standard and you are encouraged to use it.
SUBSTRING(char_exp FROM start_position [FOR length])
This syntax also works in MySQL.