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 metadata and why should I use it?

501


What are the advantages of database system?

484


What is data model in database?

477


What are queries in dbms?

494


How do you maintain a database?

512






Which database is best for large data?

496


How many number of columns can a RECORD GROUP have ?

1587


What is limit in dbms?

479


What is first normal form in dbms?

469


What are procedures in dbms?

503


i have a web page and in this page i create 3 textbax and a "summit" button do you have any html code for add text velue in my web page like link summation(form) sites.

1437


Explain a checkpoint and when does it occur?

521


What is difference between database and website?

506


How to schedule ssas database backup

530


Write down the differences between nosql and rdbms?

527