comparing varchar fields in PL/pgSQL

Поиск
Список
Период
Сортировка
От Peter Dimov
Тема comparing varchar fields in PL/pgSQL
Дата
Msg-id 20020615104104.30902.qmail@web21505.mail.yahoo.com
обсуждение исходный текст
Список pgsql-general

Hi all,

I try to make a simple triger with PL/pgSQL.

It starts on update and in my table I have a field mname varchar(20).

How can I compare if the new and the old value for this field are the same.

I tryed: if NEW.mname <> OLD.mNAME THEN ....

but it is not working !

Exist any deteilet documentation about the PL/pgSQL.

Many thanks.



Do You Yahoo!?
Sign-up for Video Highlights of 2002 FIFA World Cup

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

Предыдущее
От: Mike Mascari
Дата:
Сообщение: Re: Possible feature
Следующее
От: ktt
Дата:
Сообщение: inserting into multiple tables