Re: question

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: question
Дата
Msg-id 20034.1223428853@sss.pgh.pa.us
обсуждение исходный текст
Ответ на question  (Luis Castillo <luiscastillor@gmail.com>)
Ответы Re: question  ("A. Kretschmer" <andreas.kretschmer@schollglas.com>)
Список pgsql-general
Luis Castillo <luiscastillor@gmail.com> writes:
> I would like to know how  can I control in my database the rows that a
> user has inserted. I mean many users can insert information in a table
> but when trying to update the information I want that a user can change
> only those rows inserted by him. Is this possible with Postgresql?

Sure, if you add a column that records which user inserted the row, and
then make a BEFORE UPDATE trigger that throws an error if it doesn't
match.

            regards, tom lane

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

Предыдущее
От: Saptarshi Guha
Дата:
Сообщение: Re: Efficiency of inner joins across multiple tables
Следующее
От: "Scott Marlowe"
Дата:
Сообщение: Re: ERROR: column "datpath" does not exist