Re: serial data type usage

Поиск
Список
Период
Сортировка
От Alan Hodgson
Тема Re: serial data type usage
Дата
Msg-id 200811061210.02964@hal.medialogik.com
обсуждение исходный текст
Ответ на serial data type usage  ("EXT-Rothermel, Peter M" <Peter.M.Rothermel@boeing.com>)
Список pgsql-general
On Thursday 06 November 2008, "EXT-Rothermel, Peter M"
<Peter.M.Rothermel@boeing.com> wrote:
> I have thought about using the serial data type for the employee.id but
> I also want to automate the prepending of the { W, M, E } prefix.
>

You'll need write a before-insert trigger to assign the ID.

--
Alan

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

Предыдущее
От: Jonathan Guthrie
Дата:
Сообщение: Re: I'm no longer puzzled by a foreign key constraint problem
Следующее
От: Craig Ringer
Дата:
Сообщение: Re: I'm no longer puzzled by a foreign key constraint problem