Ndlopfu PostgreSQL
This is my PostgreSQL reference, how to's and things I've learned on my way...
Friday, 29 June 2018
How to get a list of all the databases in PostgreSQL
You can get a list of all the databases in a PostgreSQL cluster by either using a psql meta command or by executing a query.
PSQL
Open psql
Type
\l
(lowercase L) and press Enter
Query
The query to view a list of all databases in a cluster is:
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment