Raise Notice - Mailing list pgsql-novice

From Prasad dev
Subject Raise Notice
Date
Msg-id BAY103-F3758E553854EBDF9A9845AC0E90@phx.gbl
Whole thread Raw
Responses Re: Raise Notice
List pgsql-novice
Hi,
 
 I have been trying to figure out why this simple query doesn't execute if no record exist !
 
CREATE OR REPLACE FUNCTION del_rest() RETURNS TRIGGER AS 'DECLARE    t record; 
BEGIN     SELECT * INTO t FROM del2 WHERE (d2=OLD.d2 or old.d2 is null) and (d3=OLD.d3
or old.d2 is null);         IF NOT FOUND
THEN          RAISE NOTICE ''No such record exits in table
del2'';        END IF;         
returnnull;      END;'LANGUAGE 'plpgsql'; 
 
Looking forward for suggestions. Thanks
 
Prasad.

pgsql-novice by date:

Previous
From: Tom Lane
Date:
Subject: Re: BIG files
Next
From: "ed"
Date:
Subject: help with function .. .. date data type