[GENERAL] PL/pgSQL: how to round a number up?

2005-11-23 Thread Script Head
In PL/pgSQL the round() function seem to round a number down all the time. Is there something like ceil() that would round it up? ScriptHead

[GENERAL] Strugging with NEW and OLD records.

2005-11-22 Thread Script Head
    RETURN NEW;     END; ' LANGUAGE 'plpgsql'; > CREATE TRIGGER update_name_extra BEFORE INSERT ON name EXECUTE PROCEDURE update_name(); > INSERT INTO name(first,last) VALUES('script','head'); ERROR:  record "new" is not assigned yet DETAIL:  The