https://github.com/blackiq/know-postgres
A practical, example-driven guide to PostgreSQL, from SQL fundamentals to PostgreSQL-specific features.
https://github.com/blackiq/know-postgres
cheatsheet database examples knowx learning postgresql reference sql tutorial
Last synced: 1 day ago
JSON representation
A practical, example-driven guide to PostgreSQL, from SQL fundamentals to PostgreSQL-specific features.
- Host: GitHub
- URL: https://github.com/blackiq/know-postgres
- Owner: BlackIQ
- License: gpl-3.0
- Created: 2026-06-12T22:03:34.000Z (about 1 month ago)
- Default Branch: main
- Last Pushed: 2026-07-05T23:49:07.000Z (19 days ago)
- Last Synced: 2026-07-06T01:13:41.660Z (19 days ago)
- Topics: cheatsheet, database, examples, knowx, learning, postgresql, reference, sql, tutorial
- Homepage: https://github.com/BlackIQ/know-x
- Size: 34.2 KB
- Stars: 3
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# PostgreSQL Cheat Sheet
A very simple, good, fast way to learn **PostgreSQL** (if you already know SQL) also you may learn SQL here too.
## Chapters
It has kind of everything a beginer need to know. Even `JOIN` or other things. But in category:
- `TABLE`: Create, Drop, Truncate, Not NULL stuff
- `SELECT`: All columns, specified columns
- `INSERT`: Simple way, specified columns, insert many
- `WHERE`: Covering important things like between, less, more and etc
- `UPDATE`: Updating single row and multi rows with WHERE
- `DELETE`: Deleting single row and multi rows with WHERE
- `ORDER BY`: Sorting one col, more than one col having ASC and DESC
- `GROUP BY`: Base of grouping and aggrigation
- `HAVING`: Maybe another time I'll add it
- `LIMIT`: Using sort and limit
- `ALTER TABLE`: Add columns, remove columns
- `Multi Table`: Having more than 1 tables
- `FOREIGN KEY`: Relation Matters Most (RMM)
- `JOIN`: A brief of how is join working. **EVEN GOD DOESN'T KNOW**
- `JOIN`: Using INNER, LEFT, RIGHT and FULL. **EVEN GOD DOESN'T KNOW**
- `Relations`: One to One (1:1), One to Many (1:N), Many to Many (N:N)
## Why PostgreSQL cheat sheet?
This is 1:30 AM Jun 13 here in Tehran, ran out of Melatonin pils. So, creating this cheat sheet is only thing I could do.
---
### Enjoy :)