반응형
BEGIN TRANSACTION CandidateDelete
WITH MARK N'Deleting a Job Candidate';
GO
USE AdventureWorks2012;
GO
DELETE FROM AdventureWorks2012.HumanResources.JobCandidate
WHERE JobCandidateID = 13;
GO
COMMIT TRANSACTION CandidateDelete;
GO
BEGIN TRAN @TransactionName
INSERT INTO ValueTable VALUES(1), (2);
ROLLBACK TRAN @TransactionName;
반응형
'프로그래밍 > DataBase' 카테고리의 다른 글
[MSSQL] IDENT_CURRENT(Transact-SQL) (0) | 2014.04.07 |
---|---|
[ORACLE] 달력만들기 (0) | 2014.04.01 |
[DB] COMPUTE BY 는 group by와 다르다. 리스트와 결과를 볼 수 있다. (0) | 2013.12.31 |
OpenTSDB: Scalable time-series database (0) | 2013.11.21 |
[DB] RocksDB: Persistent key-value store for fast storage http://ow.ly/2BzPfY (0) | 2013.11.20 |