Re: advice on setting up schema sought
| От | Bruno Wolff III |
|---|---|
| Тема | Re: advice on setting up schema sought |
| Дата | |
| Msg-id | 20060412030006.GA8612@wolff.to обсуждение исходный текст |
| Ответ на | Re: advice on setting up schema sought (<operationsengineer1@yahoo.com>) |
| Ответы |
Re: advice on setting up schema sought
|
| Список | pgsql-novice |
On Tue, Apr 11, 2006 at 14:01:08 -0700,
operationsengineer1@yahoo.com wrote:
> like so?
>
> t_translations
> language_id (used for table level pkey)
> base_text_id (used for table level pkey)
> translation (text)
>
> i haven't worked with table level pkeys before. next
> time i get pgadmin3 fired up, i'll look into it.
Here is an example of a table constraint right from the documentation:
CREATE TABLE films (
code char(5),
title varchar(40),
did integer,
date_prod date,
kind varchar(10),
len interval hour to minute,
CONSTRAINT code_title PRIMARY KEY(code,title)
);
В списке pgsql-novice по дате отправления: