Introduceți în tabel dintr-un alt tabel sql, postgresql
Exemple de cod
1
0
postgres declanșa introduce într-un alt tabel
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;