A
A
AlimovTILLO2014-12-19 09:30:16
SQL
AlimovTILLO, 2014-12-19 09:30:16

How to create a trigger to add if there is something to update???

How the trigger works:
If we add the value "NameProduct" and "Kolichestvo" to the "Postavka" table, then in the "Sklad" table:
if not ,
then add the line "NameProduct" and "Kolichestvo"
if there is,
then update the line "NameProduct" and "Kolichestvo" .
How it is more correct to implement the trigger???

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir, 2014-12-19
@azrail_dev

create or replace TRIGGER "DB"."TRG_TABLE"
AFTER INSERT OR UPDATE OR DELETE ON DB.TABLE
.........

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question