Escolar Documentos
Profissional Documentos
Cultura Documentos
You can use any one of below commands to list all databases in PostgreSQL.
postgres=# \list
postgres=# \l
To list tables of any database first you connect to that database and then view tables in that database.
First command will connect you with database (example: mydb) to which you want to see tables and
mydb=# \dt
ostgreSQL is one of the best database engines for an average web project and many who moves
to psql from mysql (for example) often ask the following questions: what is the analog of show
tables in postgres? or how can I get the list of databases in postgres like show databases in
mysql? The answers are short: