4,390
edits
m →Usage |
mNo edit summary |
||
(5 intermediate revisions by the same user not shown) | |||
Line 88: | Line 88: | ||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
$ | $ createdb -O puser appdb | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Line 98: | Line 98: | ||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
$ sudo -iu puser | $ sudo -iu puser | ||
$ | $ psql -d appdata -U puser | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Line 119: | Line 119: | ||
| class="cli" | \q || Quit || | | class="cli" | \q || Quit || | ||
|- | |- | ||
| class="cli" | \conninfo || Get connection information | | class="cli" | \conninfo || Connection information || Get current connection information | ||
|- | |- | ||
| | | class="cli" | \d || List || List tables, views, and sequences | ||
|- | |||
| class="cli" | \dt || List tables || | |||
|} | |} | ||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
</syntaxhighlight> | </syntaxhighlight> | ||
= Resources = | = Resources = | ||
[[Introduction to PostgreSQL for MySQL Users]] | [[Introduction to PostgreSQL for MySQL Users]] |