Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- DROP TRIGGER IF EXISTS Trigger2
- CREATE TRIGGER Trigger2
- after insert
- on Строка_расписания
- begin
- update Стоимость_билета
- set Стоимость_билета = Стоимость_билета * 2
- where new.Название_спектакля not in (select distinct Название_спектакля
- from Строка_расписания);
- end;
- insert into Строка_расписания values('2019-05-08','17:00:00',2000,'Щелкунчик',2016);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement