Re: SQL statement : list table details

From: "Marc Polatschek" <Marc(dot)Polatschek(at)computec(dot)de>
To: <pgsql-general(at)postgresql(dot)org>
Subject: Re: SQL statement : list table details
Date: 2002-03-01 09:54:02
Message-ID: 2266D0630E43BB4290742247C89105758DCAB6@dozer.computec.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-sql

Im using this one

SELECT pg_class.relname AS table_name,
pg_attribute.attname AS column_name,
pg_type.typname AS data_type
FROM pg_class,
pg_attribute,
pg_type
WHERE pg_class.relfilenode = pg_attribute.attrelid
AND pg_type.oid = pg_attribute.atttypid
AND pg_class.relname not like 'pg_%'
AND pg_attribute.atttypmod > 0
AND pg_class.reltype > 0
ORDER BY pg_class.relname, pg_attribute.attname

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Nevermind 2002-03-01 10:32:01 Re: PostgreSQL Licence: GNU/GPL
Previous Message Holger Marzen 2002-03-01 09:13:04 Re: Replication

Browse pgsql-sql by date

  From Date Subject
Next Message Shane Wright 2002-03-01 12:18:13 Re: GROUPing by expressions, and subSELECTs
Previous Message Barry Lind 2002-03-01 02:32:54 Re: [SQL] Timestamp output