Re: serial data type

Поиск
Список
Период
Сортировка
От Doug McNaught
Тема Re: serial data type
Дата
Msg-id 87y8ixq5z7.fsf@asmodeus.mcnaught.org
обсуждение исходный текст
Ответ на Re: serial data type  (Tom Allison <tallison@tacocat.net>)
Список pgsql-general
Tom Allison <tallison@tacocat.net> writes:

> Doug McNaught wrote:
>>>Is it realistic to use the serial data type as a KEY?
>> Lots and lots of people do.  If you're just looking for a unique key
>> column for a single table, it works fine.
>> -Doug
>
> This is essentially what I'm looking for.
>
> Any idea how to set up a timestamp=now on every insert/update ?

Use a trigger.

-Doug
--
Let us cross over the river, and rest under the shade of the trees.
   --T. J. Jackson, 1863

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

Предыдущее
От: Tom Allison
Дата:
Сообщение: Re: serial data type
Следующее
От: gearond@fireserve.net
Дата:
Сообщение: IN or JOIN