An open API service indexing awesome lists of open source software.

https://github.com/unicodeveloper/psql-cheatsheet

Postgresql psql cheatsheet
https://github.com/unicodeveloper/psql-cheatsheet

Last synced: 3 months ago
JSON representation

Postgresql psql cheatsheet

Awesome Lists containing this project

README

          

# psql-cheatsheet

Psql cheatsheet

* **\l or \list** - List all databases
* **\c or \connect db_name** - Connect to a particular database
* **use db_name** - Connect or use a particular database
* **\dt** - List all the tables in a particular database
* **DROP schema public cascade;** - Drop all tables in the database
* **CREATE SCHEMA public;** - Creates the schema in the database. Run this after dropping all the tables using the command above this.