pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: RbrtBrn3@aol.com
To: pgsql-sql@postgresql.org
Subject: Can anyone explain how this works?
Date: Mon, 2 Apr 2001 18:01:05 EDT
Message-ID: <1e.138d30e8.27fa50a1@aol.com> (raw)

Hi,

I recently posted this same question a few weeks back but lost the reply 
someone kindly sent. The question again how exactly does this query work:

it will return all attributes and respective data types of a given table':

select attname, typname
from pg_class c, pg_attribute a, pg_type t
where relname = relation_name and
attrelid = c.oid and
atttypid = t.oid and
attnum > 0
order by attnum;

Many thanks,

Rob Burne.

view thread (2+ messages)  latest in thread

Message-ID: <1e.138d30e8.27fa50a1@aol.com>
Permalink:  ../1e.138d30e8.27fa50a1@aol.com/
Also on:    postgresql.org/message-id/1e.138d30e8.27fa50a1@aol.com

 · 

reply

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: Can anyone explain how this works?
  In-Reply-To: <1e.138d30e8.27fa50a1@aol.com>
  References: <1e.138d30e8.27fa50a1@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