Re: really novice with Postgres !

From: Ziggy Skalski <zskalski(at)afilias(dot)info>
To: pgsql-novice(at)postgresql(dot)org
Subject: Re: really novice with Postgres !
Date: 2013-08-02 12:58:25
Message-ID: 51FBACF1.6040601@afilias.info
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

On 2013-08-02 2:51 PM, Jean MAURICE wrote:
> Hi everybody,
>
> I have some more questions :
> Is there a SQL command to
> - test if a database exists
> - test if a table exists
> - get the list of the tables of a database
> - get the structure (list of fields) of a table
>
> Thanks in advance
>
> --
> Jean MAURICE
> Grenoble - France - Europe
> www.j-maurice.fr
> www.atoutfox.org
> www.aedtf.org
>
>
Off top of my head, \dt will get you list of tables and \d [tablename]
will show the structure...
You can type \? at psql prompt for more commands/etc.

Ziggy

In response to

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Tovo Rabemanantsoa 2013-08-02 13:01:45 Re: really novice with Postgres !
Previous Message Jean MAURICE 2013-08-02 12:51:39 really novice with Postgres !