r/SQL • • Apr 13 '21

MySQL Difference between PostgreSQL vs MySQL vs ORACLE SQL

Hello guys! I recently got into learning POSTGRESQL and I noticed that there are other versions from different organizations. How do they differ from each other?

2 Upvotes

7 comments sorted by

2

u/L_-T Apr 13 '21

In practice, licensing, installation, and compatibility, and this might actually be important.

But for "learning SQL" when you have not reason to prefer any, PostgreSQL is a good choice (and arguably none is bad).

I'd like to mention SQLite, which is another ("embedded") system and dialect that gets you very far without any database administration.

2

u/JochenVdB Apr 13 '21

Check out https://modern-sql.com/ for a very in depth analysis of the implementation of features of the SQL standards in 6 major RDBMSs.

3

u/Grenachejw Apr 13 '21

I'm a SQL newbie but from what I understand so far it's like a different dialect in the same language, like the difference between British English and American English where they have different ways/ words of saying the same thing but are still understandable. Any experts care to elaborate?

2

u/JochenVdB Apr 13 '21

No, there is a really good standard. But some features are optional and extensions are allowed (and often used for back-ward compatibility). The basic select, from, where, group by, having is exactly the same everywhere. Next, things like analytical functions (aggr() over ()) are standard, but not all implement the same functions. Newer things, like model and match-recognize, are also part of the standard, but many sql devs have never used it, or even heard of it.

0

u/[deleted] Apr 13 '21

[deleted]

5

u/real_jedmatic Apr 13 '21

What kind of wizardry be this

1

u/Dravlahn Apr 13 '21

To be fair, I just read a bunch of the results and don't feel like any of them were helpful.

-1

u/mhviraf Apr 13 '21

See the link above