Re: foreign keys

Поиск
Список
Период
Сортировка
От
Тема Re: foreign keys
Дата
Msg-id Pine.LNX.4.10.10008061145520.1465-100000@nemo.house
обсуждение исходный текст
Ответ на Re: foreign keys  (Bruce Momjian <pgman@candle.pha.pa.us>)
Ответы ...  ("Morten W. Petersen" <morten@src.no>)
Список pgsql-general
On Sat, 5 Aug 2000, Bruce Momjian wrote:

> > Not to mentions fact that in a few places in docs it's shown as a method
> > for copying table "SELECT... INTO" which does not "take" keys with it
> > leading to database knwoledge loss.
>
> That is a good point.  SELECT INTO doesn't support constraints.
> Unfortunately, I don't really know a way around that.  The only solution
> is CREATE TABLE and then INSERT INTO ... SELECT.

Argh, that's annoying.

Is there a way to CREATE TABLE, getting the schema from another table? :o

Ian


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

Предыдущее
От: Stephan Szabo
Дата:
Сообщение: Re: foreign keys
Следующее
От: "Morten W. Petersen"
Дата:
Сообщение: ...