CREATE OR REPLACE FUNCTION f RETURN NUMBER IS
PRAGMA autonomous_transaction;
BEGIN
INSERT INTO scott.emp (
empno,
ename
) VALUES (
8000,
'MARCO'
);
COMMIT;
RETURN 0;
END;
/
show errors
SELECT
f,
e.*
FROM
scott.emp e
WHERE
ROWNUM = 1; REM Zeile wird eingefügt ! ! ! !