Re: how to get the source table & field name of a view field

From: Christoph Haller <ch(at)rodos(dot)fzk(dot)de>
To: Prime Ho <ho(at)optimasoft(dot)com(dot)tw>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: how to get the source table & field name of a view field
Date: 2002-11-07 14:06:53
Message-ID: 3DCA737D.BB63C3C3@rodos.fzk.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

> Could you tell me how to get view field's source table and field name?

> another word, how could I know the view field come from?

Within psql, use
\d <viewname>
to learn about the view's column names and types and the view
definition.

If you were thinking about querying system tables to get this
information,
start psql with the "-E" option to see how this \d <viewname> command
is implemented.

Regards, Christoph

Browse pgsql-sql by date

  From Date Subject
Next Message Achilleus Mantzios 2002-11-07 14:25:36 Re: how to get the source table & field name of a view field
Previous Message Rachel.Vaudron 2002-11-07 14:01:46 Re: primary keys