begin
if old.unit_price<>new.unit_price then
insert into r_order_product_update(update_time,order_id,product_id,old_price,new_price) values
(now(),OLD.order_id,OLD.product_id,OLD.unit_price,NEW.unit_price);
end if;
end
if old.unit_price<>new.unit_price then
insert into r_order_product_update(update_time,order_id,product_id,old_price,new_price) values
(now(),OLD.order_id,OLD.product_id,OLD.unit_price,NEW.unit_price);
end if;
end