If I delete a table and then rollback it, do the index on
the table remains?
What if I drop the table and roll back?Do index on the
table remains?
What if I truncate the table and roll back? Do the index on
the table remains

Answer Posted / dinesh kumar

DDL COMMANDS HAVE AUTO COMMIT ....
DML COMMANDS DOES NOT HAVE AUTO COMMIT FEATURE...
SO IF WE USE "DELETE" THE STRUCTURE AND THE TABLE INDEX ARE NOT DELETD, BUT THE RECORDS ARE DELETED...

NOW IF WE USE "ROLLBACK" ALL THE RECORDS ARE GETTING BACK...

IF WE USE "DROP" ALL THE RECORDS+INDEX+STRUCTURE DELETED.
NOW WE USE "ROLLBACK" NO USE OF IT. BECAUSE AFTER EXECUTING THIS COMMAND SQL ENGINE PERFORMS "COMMIT" OPERATION.

IF WE USE "TRUNCATE" ALL THE RECORDS ARE ONLY DELETED . NOT THE STRUCTURE AND INDEX .. THIS IS ALSO DDL SO SQL ENGINE PERFORMS "COMMIT" OPERATION AFTER EXECUTING THIS COMMAND.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is artificial key?

531


what are database files, control files and log files. How many of these files should a database have at least? Why?

458


What do you mean by e-r model?

514


Enlist various types of interactions created by dbms?

504


what do u mean by implementation?

1600






What is Database testing and What are ways of writing test cases for database testing?

581


Define a relation schema and a relation.

548


Explain the components of rdbms?

574


What is openedge rdbms?

557


What are the properties of a database?

487


How many number of columns can a RECORD GROUP have ?

1587


what is the difference between filters and conditions?

1844


What is a concurrency problem in dbms?

539


What is bcnf in the dbms?

511


Explain concurrency transparency.

587