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

What is difference between database and schema?

557


What are procedures in dbms?

567


What database does facebook use?

598


when All datafiles related to a Tablespace are removed ?

1583


Define fragmentation.

574






What is the best database management system?

578


What is sql in dbms?

594


What are the types of database management system?

607


What is meant by a database?

632


What is a concurrency problem in dbms?

600


What is progress apama?

620


Define denormalization.

689


Which database is best for storing large data?

528


What are the main components of a database in healthcare?

535


What is db context?

568