Files
oracle/tpt/demos/plsql_commit.sql

19 lines
451 B
MySQL
Raw Normal View History

2026-03-12 21:23:47 +01:00
-- Copyright 2018 Tanel Poder. All rights reserved. More info at http://tanelpoder.com
-- Licensed under the Apache License, Version 2.0. See LICENSE.txt for terms & conditions.
DROP TABLE t_commit;
CREATE TABLE t_commit AS SELECT 1 a FROM dual;
-- experiment with
ALTER SESSION SET COMMIT_LOGGING = IMMEDIATE;
ALTER SESSION SET COMMIT_WRITE = WAIT;
BEGIN
FOR i IN 1..1000000 LOOP
UPDATE t_commit SET a=a+1;
COMMIT;
END LOOP;
END;
/