IF lv_br_row_id IS NOT NULL AND lv_prod_row_id IS NOT NULL THEN
INSERT INTO br_prod_sum VALUES
(lv_br_row_id,lv_prod_row_id,ln_qty
);
IF sql%notfound THEN
raise cannotinsert;
END IF;
EXCEPTION
WHEN cannotinsert THEN
dbms_output.put_line('the values are the same ones ');
END IF;出错 求解