CREATE TABLE me_and_my_lovelies (name VARCHAR2 (100))
Table created.
BEGIN
INSERT INTO me_and_my_lovelies VALUES ('Grandpa Steven');
INSERT INTO me_and_my_lovelies VALUES ('Loey');
INSERT INTO me_and_my_lovelies VALUES ('Juna');
COMMIT;
END;
1 row(s) inserted.
CREATE OR REPLACE PROCEDURE not_auton_no_commit
AUTHID DEFINER
IS
BEGIN
UPDATE me_and_my_lovelies
SET name = UPPER (name);
END not_auton_no_commit;
Procedure created.
CREATE OR REPLACE PROCEDURE not_auton_commit
IS
BEGIN
not_auton_no_commit ();
END not_auton_commit;
Procedure created.
CREATE OR REPLACE PROCEDURE auton_commit
AUTHID DEFINER
IS
PRAGMA AUTONOMOUS_TRANSACTION;
BEGIN
not_auton_no_commit ();
COMMIT;
END auton_commit;
Procedure created.
BEGIN
auton_commit;
END;
Statement processed.
SELECT COUNT(*) low_name
FROM me_and_my_lovelies
WHERE name <> UPPER (name)
LOW_NAME | 0 |
---|