Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

i tried to use trigger

Status
Not open for further replies.

JJJ777

Programmer
Jun 5, 2002
33
0
0
MY
hi again ....
base on my previous thread i try this

then when i tried update on table exam this error occured.....

WARNING: plpgsql: ERROR during compile of kira near line 2
ERROR: return type mismatch in function returning tuple at or near "total_marked"

cam someone correct it tq..in advace....


CREATE FUNCTION kira()
RETURNS opaque
AS 'BEGIN
RETURN total_marked = paper_1 + paper_2;
END;'
LANGUAGE 'plpgsql';


CREATE TRIGGER trig_kira
AFTER UPDATE ON exam FOR EACH ROW EXECUTE PROCEDURE kira();
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top