Note that yes, they all use "SQL", but that most non-trivial SQL you write will probably not be easily ported from one to the other. Because often you'll use server-specific functionality or syntax.
I don't agree with this statement. There may be small syntactical differences with window or aggregation functions, engine hints, and similar, but for simply writing queries, the overwhelming majority will be ANSI SQL or will have trivial differences that can be addressed with find-and-replace.
The real differences start when you get into stored procedures/temp tables/loops, and database administration tasks, including indexing.
I find the differences are highly overstated in general.
Not really for pivot, unpivot, outer apply, cross apply, any stored procedure or function using if statements (not trivial enough to search and replace), table valued functions that take custom types as inputs, convert vs cast, and the list goes on. And these are all pretty basic things all database can do.
Yes it can be done as the comment you replied to stated, but no it is not as trivial as you make it out to be.
60
u/tomma5o Sep 24 '20 edited Sep 24 '20
Sorry FE dev here, why you guys prefer postgreSQL over mySQL?