Skip to content

Instantly share code, notes, and snippets.

@nepsilon
Last active February 19, 2017 13:53
Show Gist options
  • Save nepsilon/74217f1efa40e8a3c9594e5d01484403 to your computer and use it in GitHub Desktop.
Save nepsilon/74217f1efa40e8a3c9594e5d01484403 to your computer and use it in GitHub Desktop.
PostgreSQL: TABLE instead of SELECT * FROM — First published in fullweb.io issue #59

PostgreSQL: TABLE instead of SELECT * FROM

Or how to save 7 keystrokes 🙌.

You can type TABLE foo instead of SELECT * FROM foo. The output will be the same:

foo-db=# TABLE foo;
 id    │  name  |  email
───────┼────────┼─────────
 70263 │ bar    | f@b.com
(1 row)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment