r/learnSQL • • Jun 23 '26

Which SQL to start?

I am starting SQL to which is better to learn as a beginner ?

MYSQL or POSTgreSQL ?

if ANY YT recommendation for learning please tell me which is best ?

61 Upvotes

34 comments sorted by

View all comments

1

u/navicat-gu 1d ago

Honestly, either is fine. About 90% of what you learn (SELECT, WHERE, JOIN, GROUP BY, subqueries, CTEs, window functions) is the same in both.

  • PostgreSQL if you're aiming at data analysis or engineering. It shows up more in modern data stacks and take-home tests, and it's stricter about SQL standards, which builds good habits.
  • MySQL if you're going toward web development (PHP/WordPress-type stacks), or the course you're following uses it.

The differences you'll notice early are small: LIMIT works in both; string concatenation is || in Postgres vs CONCAT() in MySQL; Postgres has ILIKE for case-insensitive matching. You'll pick those up in an afternoon when you switch.

What matters more is practice on real-ish data: load a sample database (dvdrental for Postgres, Sakila for MySQL) and answer your own questions with it.

Disclosure: I'm RC, Director of Digital Strategy @ Navicat. If you want to try both without juggling two tools, Navicat Premium Lite is free and connects to MySQL and PostgreSQL from one window. pgAdmin and MySQL Workbench are also free if you go with one.