Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

create function postgresql

CREATE OR REPLACE FUNCTION auditlogfunc() RETURNS TRIGGER AS $example_table$
   BEGIN
      INSERT INTO AUDIT(EMP_ID, ENTRY_DATE) VALUES (new.ID, current_timestamp);
      RETURN NEW;
   END;
$example_table$ LANGUAGE plpgsql;
Source by www.tutorialspoint.com #
 
PREVIOUS NEXT
Tagged: #create #function #postgresql
ADD COMMENT
Topic
Name
2+1 =