From: | "Poul L(dot) Christiansen" <plc(at)faroenet(dot)fo> |
---|---|
To: | Thomas Weholt <Thomas(at)cintra(dot)no> |
Cc: | pgsql-novice(at)hub(dot)org |
Subject: | Re: Get all names of tables in a database |
Date: | 2000-06-27 11:06:53 |
Message-ID: | 39588ACC.FAA7021B@faroenet.fo |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-novice |
"select * from pg_tables" pg_tables is a system table. But it seems that
it also returns the system tables.
Thomas Weholt wrote:
> Hi,
>
> I was hoping there was some SQL way to do it. I`m doing it thru a
> python-module.
> Sort alike "select datname from pg_database;".
>
> -----Original Message-----
> From: Poul L. Christiansen [mailto:plc(at)faroenet(dot)fo]
> Sent: 27. juni 2000 12:56
> To: Thomas Weholt
> Cc: 'pgsql-novice(at)hub(dot)org'
> Subject: Re: [NOVICE] Get all names of tables in a database
>
> 1. Log into the database "psql databasename"
> 2. just write "\dt" to list the tables
>
> And write "\h" and "\?" to see all the commands.
>
> Thomas Weholt wrote:
>
> > Hi,
> >
> > How can I get the names of all the tables in a database?
> >
> > Thomas
From | Date | Subject | |
---|---|---|---|
Next Message | Thomas Weholt | 2000-06-27 11:44:54 | Get all names of tables in a database |
Previous Message | Poul L. Christiansen | 2000-06-27 10:56:23 | Re: Get all names of tables in a database |