Insérer dans la table à partir d'une autre table sql de postgresql
Exemples de code
1
0
postgres déclencher l'insérer dans une autre table
CREATE OR REPLACE FUNCTION function_copy() RETURNS TRIGGER AS
$BODY$
BEGIN
INSERT IGNORE INTO
table2(id,name)
VALUES(new.id,new.name);
RETURN new;
END;
$BODY$
language plpgsql;