mutate table エラーを克服する方法について、次の手順を適用しました。
http://asktom.oracle.com/pls/asktom/ASKTOM.download_file?p_file=6551198119097816936
しかし、最後のトリガーで、次のエラーが発生しました。
SQL> create or replace trigger Factura_Detalle_ai
after insert or update of PRODUCTO on Factura_Detalle
begin
for i in 1 .. state_pkg.newRows.count loop
UPDATE Factura_Detalle
SET Precio = (SELECT pre.PRECIO
FROM PRECIO pre
WHERE pre.PRODUCTO = state_pkg.newRows(i));
end loop;
end;
/
2 3 4 5 6 7 8 9 10 11 12 13
Warning: Trigger created with compilation errors.
SQL> show errors trigger factura_detalle_ai
Errors for TRIGGER FACTURA_DETALLE_AI:
LINE/COL ERROR
-------- -----------------------------------------------------------------
4/4 PL/SQL: SQL Statement ignored
7/23 PL/SQL: ORA-00932: inconsistent datatypes: expected NUMBER got
ROWID
何か案は?
ご挨拶