dwyl / dwyl/learn-postgresql

Useful PosgreSQL Commands

Open
#4 3 comments 5 reactions 0 assignees View on GitHub
enhancement help wanted
Dominant language
JavaScript
Stars
346
Forks
37
PR merge metrics
No merged PRs in 30d

Description

Please add commands which you have found useful...

using `psql` (_the Postgres shell_)

Create a new Database:

``` sh
CREATE DATABASE dbname;
```

To connect to ("use") a specific database

``` sh
\c dbname
```

> http://stackoverflow.com/questions/10335561/use-database-name-command-in-postgresql

Show (_list of_) Tables (_for a given database_):

``` sh
\dt
```

> http://stackoverflow.com/questions/769683/show-tables-in-postgresql

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.