CREATE OR REPLACE FUNCTION dljck_history() RETURNS TRIGGER AS
BEGIN
insert into dljck_history (gid,id,fldm,gbdm,mc,type ,gxdwdm ,gxsj ,szdl ,ssqy ,geom ) values (new.gid,new.id,new.fldm,new.gbdm,new.mc,new.type ,new.gxdwdm ,new.gxsj ,new.szdl ,new.ssqy ,new.geom );
RETURN NEW;
END;
LANGUAGE plpgsql;
CREATE TRIGGER dljck_stamp AFTER INSERT ON dljck
FOR EACH ROW EXECUTE PROCEDURE dljck_history();