Skip to content

Instantly share code, notes, and snippets.

View ivaldir301's full-sized avatar

Ivaldir Batalha ivaldir301

View GitHub Profile
@ivaldir301
ivaldir301 / postgresql.md
Created June 20, 2023 18:51 — forked from Denilson-Semedo/postgresql.md
PostgreSQL cheatsheet guide

PostgreSQL Cheatsheet

Basic Commands

  • \l: List all databases.
  • \c database_name: Connect to a specific database.
  • \dt: List all tables in the current database.
  • \d table_name: Show information about a specific table.
  • \du: List all database users.
  • \q: Quit psql.