Re: advice on setting up schema sought

Поиск
Список
Период
Сортировка
От Bruno Wolff III
Тема Re: advice on setting up schema sought
Дата
Msg-id 20060411164245.GA1599@wolff.to
обсуждение исходный текст
Ответ на Re: advice on setting up schema sought  (<operationsengineer1@yahoo.com>)
Ответы Re: advice on setting up schema sought
Список pgsql-novice
On Mon, Apr 10, 2006 at 22:30:47 -0700,
  operationsengineer1@yahoo.com wrote:
>
> Daniel, i'm not sure i totally understand your
> request.  from what i could make of it, though, would
> this workd?
>
> t_text
> text_id (pkey)
> language_id (fkey)
> text
>
> t_language
> language_id (pkey)
> language
>
> the foreign key of the t_text table would reference
> the the pkey (primary key) of the t_language.

In the translation table, you need to make the primary key a composite of
text_id and language_id so that only one unique combination of the two is
allowed.

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

Предыдущее
От: george young
Дата:
Сообщение: Re: How to append records into a file which has serial
Следующее
От: Lan Barnes
Дата:
Сообщение: SELECT of a glob