Re: Dont allow updation for few columns in a record.

Поиск
Список
Период
Сортировка
От Bruno Wolff III
Тема Re: Dont allow updation for few columns in a record.
Дата
Msg-id 20030709134359.GA20044@wolff.to
обсуждение исходный текст
Ответ на Dont allow updation for few columns in a record.  (HK <harikrishnan@midascomm.com>)
Ответы Re: Dont allow updation for few columns in a record.  (HK <harikrishnan@midascomm.com>)
Список pgsql-novice
On Wed, Jul 09, 2003 at 11:40:24 +0530,
  HK <harikrishnan@midascomm.com> wrote:
> Hi all,
>     Is it possible to say that once a record is inserted into the
> table, nobody can update some particular columns in that record.
>
> (eg)
> table
> ------
> prod_id prod_name prod_desc
>   1      name1      desc1
>   2      name2      desc2
>
> In this table i dont want to allow updation of the prod_name column.
>
> I can write a trigger to do this job, but is there any way to specify
> during the table creation time itself that these columns cannot be
> altered.

One option would be not to grant UPDATE access to the table.

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

Предыдущее
От: Nabil Sayegh
Дата:
Сообщение: HelpDesk System ???
Следующее
От: Dmitry Tkach
Дата:
Сообщение: Re: inheritance