Collections:
Transaction Commit When DDL Statement Executed in Oracle
What Happens to the Current Transaction If a DDL Statement Is Executed in Oracle?
✍: FYIcenter.com
If a DDL statement is executed, the current transaction will be committed and ended. All the database changes made in the current transaction will become permanent. This is called an implicit commit by a DDL statement. The following tutorial exercise shows you that the CREATE TABLE statement forced the current transaction to be committed and ended. The subsequent ROLLBACK statement has no effects on the closed transaction.
SQL> connect HR/fyicenter SQL> INSERT INTO fyi_links (url, id) 2 VALUES ('oracle.com', 112); SQL> INSERT INTO fyi_links (url, id) 2 VALUES ('sql.com', 113); SQL> CREATE TABLE fyi_temp AS (SELECT * FROM fyi_links); Table created. SQL> ROLLBACK; Rollback complete. SQL> SELECT * FROM fyi_links; ID URL NOTES COUNTS CREATED ------- ---------------- ---------- ---------- --------- 101 fyicenter.com 07-MAY-06 110 centerfyi.com 07-MAY-06 112 oracle.com 07-MAY-06 113 sql.com 07-MAY-06
⇒ Transaction Commit When Session Ended in Oracle
⇐ Rollback the Current Transaction in Oracle
2019-09-04, 1889🔥, 0💬
Popular Posts:
How To Convert Numeric Values to Character Strings in MySQL? You can convert numeric values to chara...
How To Present a Past Time in Hours, Minutes and Seconds in MySQL? If you want show an article was p...
What Is SQL*Plus in Oracle? SQL*Plus is an interactive and batch query tool that is installed with e...
How To Use SQL*Plus Built-in Timers in Oracle? If you don't have a stopwatch/timer and want to measu...
How To Get Year, Month and Day Out of DATETIME Values in SQL Server Transact-SQL? You can use DATEPA...