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();
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();