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

Enlist some commands of ddl, dml, and dcl.

577


Which parameters are optional in init.ora parameter file?

1750


What is a deadlock and mention how it can be resolved?

450


what are the differences between network and hierarchical database model?

545


How big is google's database?

486






There are 100 datafiles, numbered from 1 to 100. File number 10 is deleted and it has 500 MB of data. The database is working in archive log mode. How can be the database recovered ? While doing recovery the archive logs applied are from nos 1 to 100, but 50 gets corrupted. What do we do? Can we proceed further? If so how?

1710


Where is data stored in a database?

497


What is the definition of database management system?

503


What is the full form of rdbms?

497


How to do replication of firebird databases?

495


What is the advantage of the database management approach

631


What are the advantages of database?

499


Explain 3nf?

546


What entity means?

473


Explain what are tp-lite and tp-heavy monitors?

512