Re: Read-only column

Поиск
Список
Период
Сортировка
От Doug McNaught
Тема Re: Read-only column
Дата
Msg-id 87llphonpj.fsf@asmodeus.mcnaught.org
обсуждение исходный текст
Ответ на Read-only column  (Claudio Succa <claudio.succa.ml@pertel.it>)
Ответы Re: Read-only column
Список pgsql-general
Claudio Succa <claudio.succa.ml@pertel.it> writes:

> Given a table like the following:
>
> CREATE TABLE mytable (
>     progr integer PRIMARY KEY,
>     record_creation_date date DEFAULT current_date,
>     ...
>     other columns
>     ...
> );
>
> is there a way to deny any modifications to 'record_creation_date'
> without using a view?

Sure, you can use a trigger.

-Doug

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

Предыдущее
От: Claudio Succa
Дата:
Сообщение: Read-only column
Следующее
От: Jon Earle
Дата:
Сообщение: Error with table