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
- Host: GitHub
- URL: https://github.com/unicodeveloper/psql-cheatsheet
- Owner: unicodeveloper
- Created: 2015-10-26T05:58:14.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2015-10-26T06:22:20.000Z (about 10 years ago)
- Last Synced: 2024-10-16T06:56:44.858Z (about 1 year ago)
- Size: 336 KB
- Stars: 3
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.