Skip to content

Instantly share code, notes, and snippets.

@Lucbm99
Created May 26, 2021 01:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Lucbm99/61ea582455261b1ba3902935d140e2c6 to your computer and use it in GitHub Desktop.
Save Lucbm99/61ea582455261b1ba3902935d140e2c6 to your computer and use it in GitHub Desktop.
create trigger delete_produto before delete
on PRODUTOS_SERVICOS
for each row
insert into DELECAO_PRODUTOS
values(old.idProdutos_Servicos, old.nome, old.descricao, old.valor, old.fornecedor, old.tipo, old.preco_desconto, now());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment