Search:     Advanced search
Browse by category:
C/C++   |   Java   |   Oracle/Database   |   SAP   |   ASP .NET   |   Mainframe-DB2   |   Freshers

Q: Emp table had an employee with salary 2000. I issued an update statement to set the salary to 3000. Then I issued a create table statement. However the create table command errored out. I want to rollback the earlier update statement. Can I do that?

Add comment
Views: 486
Votes: 1
Comments: 0
ALL DDL  statements are auto-commit. That means whenever you execute a DDL statement, all prior transactions get commited. Please note that the commit is issued before excuting the DDL. So even if the DDL statement errors out, commit would have happened.
Others in this Category
document What are the different index configurations a table can have?
document Q: Please explain the concepts of transaction, commit and rollback
document Q: how to know the days or months or years between two employees in emp table?
document What is a Scheduled Jobs or What is a Scheduled Tasks?
document How to copy the tables, schema and views from one SQL Server to another?
document What are the properties of the Relational tables?
document What is LINQ?
document How would you handle error in SQL SERVER 2008?
document What is sub-query? Explain properties of sub-query?
document What do you mean by Table Sample?
» More articles



RSS