Problems with Triggers

Поиск
Список
Период
Сортировка
От Sebastian Böck
Тема Problems with Triggers
Дата
Msg-id 407E782A.7070909@freenet.de
обсуждение исходный текст
Ответы Re: Problems with Triggers
Re: Problems with Triggers
Список pgsql-general
Hello,

is there a simple operator to determine whether the OLD.value and
NEW.value are different. The <> operator is not working on NULL's.

I need something like this:
NEW.val <> Old.val OR
NEW.val IS NULL AND OLD.val IS NOT NULL OR
NEW.val IS NOT NULL AND OLD.val IS NULL

Thanks in advance

Sebastian

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