ISE-ComProg-After-Midterm/waxds-copper/function_upd_dt.sql

7 lines
138 B
PL/PgSQL

create or replace function upd_dt()
returns trigger as '
begin
NEW.updatedate := current_timestamp;
RETURN NEW;
end;
' LANGUAGE plpgsql;