Created
May 26, 2021 01:21
-
-
Save Lucbm99/206a034e1a8c37d05c01ef4c4393657c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE TRIGGER trigger_desconto_produto BEFORE INSERT | |
on PRODUTOS_SERVICOS | |
FOR EACH ROW | |
SET NEW.preco_desconto = (NEW.valor * 0.90); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment