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 / mohammed

DROP and TRUNCATE are DDL commands, whereas DELETE is a DML
command. Therefore DELETE operations can be rolled back
(undone), while DROP and TRUNCATE operations cannot be
rolled back.It is possible to delete all rows in a table
without deleting the table. This means that the table
structure, attributes, and indexes will be intact.Indexes,
tables, and databases can easily be deleted/removed with
the DROP statement. If we only want to delete the data
inside the table, and not the table itself....
Then, use the TRUNCATE TABLE statement.

Is This Answer Correct ?    6 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How does notification services work?

702


What are the characteristics of database?

662


Is database a data structure?

619


Explain the three Level Architecture of the Database System

732


What is the e-r model?

653


Explain what are the types of transparencies?

721


how to generate an auto incremental number in a ssis package?

709


What is table normalization?

679


Who invented schema theory?

637


How many database systems are there?

689


What is ims software environment?

693


What is the data in a database?

639


What are the different types of database?

676


What are the 4 types of database?

770


How index hunting contributes in improving the query performance?

725