Re: Alter table column constraint [RESOLVED]

Поиск
Список
Период
Сортировка
От Rich Shepard
Тема Re: Alter table column constraint [RESOLVED]
Дата
Msg-id alpine.LNX.2.20.1812171307390.741@salmo.appl-ecosys.com
обсуждение исходный текст
Ответ на Re: Alter table column constraint  (Ron <ronljohnsonjr@gmail.com>)
Список pgsql-general
On Mon, 17 Dec 2018, Ron wrote:

> Melvin is saying to:
> 1. create a table named valid_industry,
> 2. populate it with the valid industries,
> 3. create an FK constraint on your main table's industry column to 
> valid_industry.industry, and then
> 4. drop the constraint invalid_industry.

   Got it. Hadn't before considered making column check constraints into
separate tables, but now I see the value of doing this.

Thanks, all,

Rich


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

Предыдущее
От: David Rowley
Дата:
Сообщение: Re: NL Join vs Merge Join - 5 hours vs 2 seconds
Следующее
От: "a"
Дата:
Сообщение: How to insert bulk data with libpq in C?