add column if doesn't exist

Поиск
Список
Период
Сортировка
От Brandon Metcalf
Тема add column if doesn't exist
Дата
Msg-id Pine.LNX.4.58L.0509261534430.1453@cash.rhiamet.com
обсуждение исходный текст
Ответы Re: add column if doesn't exist  (Peter Eisentraut <peter_e@gmx.net>)
Список pgsql-sql
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?

I'm basically looking to do an ALTER TABLE foo ADD COLUMN bar if bar
doesn't exist.

Thanks.

-- 
Brandon


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

Предыдущее
От: Chris Browne
Дата:
Сообщение: Re: Possible to delete record from all tables at the same time?
Следующее
От: Michael Fuhr
Дата:
Сообщение: Re: Updating cidr column with network operator