Re: Foreign Key Implementation

Поиск
Список
Период
Сортировка
От Kovacs Zoltan Sandor
Тема Re: Foreign Key Implementation
Дата
Msg-id Pine.LNX.4.05.10004051137250.4358-100000@pc10.radnoti-szeged.sulinet.hu
обсуждение исходный текст
Ответ на Re: Foreign Key Implementation  ("Alexey V. Meledin" <avm@webclub.ru>)
Список pgsql-sql
The documentation in 7.0 is rather obsolete, sorry for inconvenience. The
release will hopefully contain all information. Here is an example for
basic foreign key definition:

create table group(id serial, name varchar(20));
create table member(id serial, name varchar(30), group int4references group(id));

The following has the same result:

create table group(id serial, name varchar(20));
create table member(id serial, name varchar(30), group int4,foreign key id references group(id)on update restrict on
deleterestrict);
 

I hope this helps.

Regards,
Zoltan



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

Предыдущее
От: "Alexey V. Meledin"
Дата:
Сообщение: Re[2]: planner/optimizer hash index method and so on
Следующее
От: "Larry ganga giri"
Дата:
Сообщение: Is Pgsql an OORDBMS?