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
Список 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 по дате отправления: