Re: [SQL] add column if doesn't exist (fwd)

Поиск
Список
Период
Сортировка
От Qingqing Zhou
Тема Re: [SQL] add column if doesn't exist (fwd)
Дата
Msg-id dh9vh2$10ir$1@news.hub.org
обсуждение исходный текст
Ответ на [SQL] add column if doesn't exist (fwd)  ("Brandon Metcalf" <bmetcalf@nortel.com>)
Ответы Re: [SQL] add column if doesn't exist (fwd)  ("Jim C. Nasby" <jnasby@pervasive.com>)
Список pgsql-general
""Brandon Metcalf"" <bmetcalf@nortel.com> wrote
>
> Is there a way to check for the existence of a column in a table other
> than, say, doing a SELECT on that column name and checking the output?
>

Take a look at pg_attribute system table.
http://www.postgresql.org/docs/8.0/static/catalog-pg-attribute.html

Regards,
Qingqing



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

Предыдущее
От: "Qingqing Zhou"
Дата:
Сообщение: Re: could not send data to server: Operation not supported
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Can't change language through LC_MESSAGES