Re: Field list from table

Поиск
Список
Период
Сортировка
От Denis
Тема Re: Field list from table
Дата
Msg-id 01fb01c3ff4e$5bd62a40$0f32a8c0@denisnew
обсуждение исходный текст
Ответ на Field list from table  ("Jan Pips" <jan_pips@op.pl>)
Список pgsql-sql
To get the list.. use 

SELECT a.attname as "Columns"
FROM  pg_attribute a, pg_class c
WHERE c.relname = '<YOUR_TABLE_NAME>' AND a.attnum > 0 AND a.attrelid = c.oid
ORDER BY a.attnum

Thanx

Denis


----- Original Message ----- 
From: "Jan Pips" <jan_pips@op.pl>
To: <pgsql-sql@postgresql.org>
Sent: Thursday, February 26, 2004 3:21 PM
Subject: [SQL] Field list from table


> How can I, using SELECT, get the full list of fields from a given table?
> 
> Pips
> 
> 
> 
> ---------------------------(end of broadcast)---------------------------
> TIP 3: if posting/reading through Usenet, please send an appropriate
>       subscribe-nomail command to majordomo@postgresql.org so that your
>       message can get through to the mailing list cleanly




В списке pgsql-sql по дате отправления:

Предыдущее
От: Christopher Browne
Дата:
Сообщение: Re: User defined types -- Social Security number...
Следующее
От: Terence Kearns
Дата:
Сообщение: Re: returning a recordset from PLpg/SQL