r/learnSQL • • 16h ago

How to learn postgresql

Did learning express. so as next step in thinking of learning postgresql instead of mongodb. so how. how did you learn. my stack is pern and is it good??

4 Upvotes

6 comments sorted by

View all comments

1

u/Discordbothost 12h ago

Practice constraints alongside the CRUD app. For example, define email as TEXT UNIQUE, then insert the same address twice: PostgreSQL should reject the second insert. Handle that error in Express. You'll learn which checks belong in the database, beyond just getting a successful query back.