TRANSACTIONS SQL

--TRANSACTIONS---

---Group of SQL Statements which succeed or fail as a whole.

--We can commit the data, rollback the data,set save points using transactions.

--Savepoints:-These are the identification marks to which the data can be rolled back later on.

---Types of Transactions:--

----1)Autocommit Transactions
---- 2)Explicit Transactions
-----3)Implicit Transactions.

----Autocommit Transactions:-
insert emp(eid,enm)  values(100,'abc')


--Explicit Transactions--

begin transaction
insert dept  values(267)
insert dept  values(33)
insert sales values(3)
commit transaction



---IMPLICIT TRANSACTIONS:--
---In these type of transactions, we need not write Begin Transaction statement before the Commit transaction or rollback transaction statement

--For this, we have to write Set Implicit_Transactions on

set implicit_transactions off

insert sales(sno) values(2356)
insert dept(dno) values(776)

TRANSACTIONS SQL Reviewed by Rupesh on 19:39 Rating: 5

No comments:

All Rights Reserved by Technology from Developers Eye © 2014 - 2015
Powered By Blogger, Designed by Aadics
Disclaimers:: The information provided within this blogsite is for general informational purposes only. While we try to keep the information up-to-date and correct, there are no representations or warranties, express or implied, about the completeness, accuracy, reliability, suitability or availability with respect to the information, products, services, or related graphics contained in this blogsite for any purpose.The author does not assume and hereby disclaims any liability to any party for any loss, damage, or disruption caused by errors or omissions, whether such errors or omissions result from accident, negligence, or any other cause.

Contact Form

Name

Email *

Message *

Powered by Blogger.