create or replace trigger addRecord after update
on t_car
begin
if t_car.car_exhibit ='不可租' then
insert into t_car_rent values('1','1',500,
(select sysdate from dual)
,(select sysdate + interval '7' day from dual));
end if;
end;
/
sunbohan00
sunbohan00
相关分类