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]).
I normally just use substring('string', [int], [int]) because I learned it that way from MySQL my simple question is now if this two have any differences is the first one maybe the better choice to use in PostgreSQL or does do the same and these are just 2 different kinds of doing the same thing?
substr(string, int, int)instead if you want. I think thesubstring(... from ...)syntax stems from the SQL standard (somethign which MySQL does not really care about)substring(... from ...)is the ANSI/ISO SQL way.substring(...from...)is the normal Syntax while the other one was implemented by mysql makes sense to me even I figured out that mysql is a big difference to all other SQL languages and that's mostly not a good thing! But is there like a speed difference? Or can I just assume that both syntax types just call the same function?