Re: how to list all tables in a database

From: Sean Davis <sdavis2(at)mail(dot)nih(dot)gov>
To: Joao Miguel Ferreira <jmf(at)estg(dot)ipvc(dot)pt>, <pgsql-novice(at)postgresql(dot)org>
Subject: Re: how to list all tables in a database
Date: 2006-01-09 12:47:11
Message-ID: BFE7C57F.3470%sdavis2@mail.nih.gov
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

On 1/9/06 12:37 PM, "Joao Miguel Ferreira" <jmf(at)estg(dot)ipvc(dot)pt> wrote:

> this is my first question... I'm really new to PG.
>
> How do I get a list of all tables in a database ?

Bom Dia! Bemvindo ao Pg.

In psql, type:

\dt

> Is there an SQL command for this ?

Look at the chapter from the manual here:

http://www.postgresql.org/docs/8.1/static/view-pg-tables.html

As a starter, you can do:

select * from pg_tables;

Sean

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message A. Kretschmer 2006-01-09 12:48:21 Re: how to list all tables in a database
Previous Message Adam Witney 2006-01-09 12:44:45 Re: how to list all tables in a database