Categories:
.NET (961)
C (387)
C++ (185)
CSS (84)
DBA (8)
General (31)
HTML (48)
Java (641)
JavaScript (220)
JSP (109)
JUnit (31)
MySQL (297)
Networking (10)
Oracle (562)
Perl (48)
Perl (9)
PHP (259)
PL/SQL (140)
RSS (51)
Software QA (28)
SQL Server (5)
Struts (20)
Unix (2)
Windows (3)
XHTML (199)
XML (59)
Other Resources:
What Happens to the Current Transaction If a DDL Statement Is Executed
What Happens to the Current Transaction If a DDL Statement Is Executed? - Oracle DBA FAQ - Understanding SQL Transaction Management
✍: 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
2007-04-18, 4491👍, 0💬
Popular Posts:
.NET INTERVIEW QUESTIONS - What is COM ? Microsoft’s COM is a technology for component software deve...
What does a well-written Object Oriented program look like? A well-written object oriented program e...
Describe in detail Basic of SAO architecture of Remoting? For these types of questions interviewer e...
How Do I Run JUnit Tests from Command Window? To run JUnit tests from a command window, you need to ...
What is the difference between const char* p and char const* p? In const char* p, the character poin...