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.
Sorry, but this is not true. For our current product we have to support 5 different databases and the differences already start with creation of tables, indexes and unique columns.
Also the column types and their handing are different. Let alone stuff like JSON support.
That said, I still prefer using jdbc and writing plain SQL over having to use some mapper.
182
u/mobydikc Sep 24 '20 edited Sep 24 '20
SQL is just a language. Structured Query Language or something like that.
PostgreSQ, MySQL, MIcrosoft SQL Server, Oracle, are just some of the products that use SQL.
Postgres is free, open source, reliable, fast, and powerful.
edit the comment I replied to originally said "normal SQL" instead of "mySQL"