From: RbrtBrn3@aol.com
To: pgsql-sql@postgresql.org
Subject: How does this query work.....?
Date: Fri, 9 Mar 2001 10:29:01 EST
Message-ID: <28.1237f87b.27da50bd@aol.com> (raw)
Hi,
I am using the following query to find the attributes of a given table, and
their datatypes:
select typname,attname
from pg_class c, pg_attribute a,pg_type t
where relname = 'table_name' and
attrelid = c.oid and
atttypid = t.oid and
attnum > 0;
Can anybody explain how this query actually works - I cannot figure it.
Thanks in advance.
Rob Burne.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-sql@postgresql.org
Cc: RbrtBrn3@aol.com
Subject: Re: How does this query work.....?
In-Reply-To: <28.1237f87b.27da50bd@aol.com>
References: <28.1237f87b.27da50bd@aol.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox