Need help with simple update / insert trigger

Поиск
Список
Период
Сортировка
От Matthew Wilson
Тема Need help with simple update / insert trigger
Дата
Msg-id slrngbdg7q.iki.matt@sprout.tplus1.com
обсуждение исходный текст
Список pgsql-general
I have table sort of like this:

create table snoz (
    a bool default false,
    b bool default false,
    c bool default false
);

I want to set up a trigger so that any time a row is inserted or
updated, the value of c is set to true if a and/or b is true.

How can I do this?

Thanks!

Matt

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