Re: Read-only column
От | Claudio Succa |
---|---|
Тема | Re: Read-only column |
Дата | |
Msg-id | 1071328797.696.19.camel@master.to1.pertel.it обсуждение исходный текст |
Ответ на | Re: Read-only column (Doug McNaught <doug@mcnaught.org>) |
Ответы |
Re: Read-only column
|
Список | pgsql-general |
Il ven, 2003-12-12 alle 20:11, Doug McNaught ha scritto: > 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 Thanks a lot Doug. (Not to reinvent the wheel, do you know where I could find a suitable function to use in the trigger?) Claudio -- Claudio Succa PERTEL - Torino - Italy +39-011-437.4141 http://www.pertel.it http://www.uniassist.it
В списке pgsql-general по дате отправления: