Re: Field list from table

Поиск
Список
Период
Сортировка
От Christopher Browne
Тема Re: Field list from table
Дата
Msg-id m365duyolz.fsf@wolfe.cbbrowne.com
обсуждение исходный текст
Список pgsql-sql
"Jan Pips" <jan_pips@op.pl> wrote:
> How can I, using SELECT, get the full list of fields from a given table?

portfolio=# select column_name, data_type from information_schema.columns where table_catalog = 'portfolio' and
table_schema= 'public' and table_name = 'stocktxns';column_name |        data_type         
 
-------------+--------------------------symbol      | character varyingdate        | timestamp with time zoneprice
| numericquantity    | numeric
 
(4 rows)

information_schema.columns has additional columns to provide
information about numeric precision, string widths, and such...
-- 
"cbbrowne","@","ntlug.org"
http://www.ntlug.org/~cbbrowne/postgresql.html
Rules  of the  Evil Overlord  #4.  "Shooting is  not too  good for  my
enemies." <http://www.eviloverlord.com/>


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

Предыдущее
От: "Kumar"
Дата:
Сообщение: Return more than a record
Следующее
От: Frank Bax
Дата:
Сообщение: Re: Last day of month