Collections:
Commit the Current Transaction in Oracle
How To Commit the Current Transaction in Oracle?
✍: FYIcenter.com
If you have used some DML statements updated some data objects, and you want to have the updates to be permanently recorded in the database, you can use the COMMIT statement. It will make all the database changes made in the current transaction become permanent and end the current transaction. The following tutorial exercise shows you how to use COMMIT statements:
SQL> connect HR/fyicenter
SQL> INSERT INTO fyi_links (url, id)
2 VALUES ('fyicenter.com', 101);
SQL> INSERT INTO fyi_links (url, id)
2 VALUES ('centerfyi.com', 110);
SQL> SELECT * FROM fyi_links;
ID URL NOTES COUNTS CREATED
------- ---------------- ---------- ---------- ---------
101 fyicenter.com 07-MAY-06
110 centerfyi.com 07-MAY-06
SQL> COMMIT;
Commit complete.
⇒ Rollback the Current Transaction in Oracle
⇐ Create a Test Table for Transaction Testing in Oracle
2019-09-04, 2463🔥, 0💬
Popular Posts:
How to execute statements under given conditions in SQL Server Transact-SQL? How to use IF ... ELSE ...
What Happens to Your Transactions When ERROR 1205 Occurred in MySQL? If your transaction receives th...
How to set database to be READ_ONLY in SQL Server? Databases in SQL Server have two update options: ...
How To Use DATEADD() Function in SQL Server Transact-SQL? DATEADD() is a very useful function for ma...
How To Connect the Oracle Server as SYSDBA in Oracle? This is Step 4. The best way to connect to the...