Re: really novice with Postgres !

From: Tovo Rabemanantsoa <tovo(dot)rabemanantsoa(at)bordeaux(dot)inra(dot)fr>
To: pgsql-novice(at)postgresql(dot)org
Subject: Re: really novice with Postgres !
Date: 2013-08-02 13:42:07
Message-ID: 51FBB72F.7060603@bordeaux.inra.fr
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

On 08/02/2013 03:31 PM, Jean MAURICE wrote:
> Hi Tovo,
>
> I saw there is a view 'tables' that gives the list of the tables. How do
> we use a view in Postgres ?
> I tried
> SELECT * FROM tables;
> but the error is something like 'the relation 'tables' doesn't exist'
> (my Postgres is in French !)
>
> Best regards
>

It's quite simple, for example, if you want to list tables by using the
view tables, you make the following query :
SELECT * FROM information_schema.tables
Et voilà

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message Kevin Salisbury 2013-08-02 14:05:01 Re: really novice with Postgres !
Previous Message Jean MAURICE 2013-08-02 13:31:44 Re: really novice with Postgres !