what is differnece between DROP TABLE & DELETE TABLE .

Answer Posted / samir kumar sahoo.

in DROP TABLE command it will remove the table containts as
well as table structure from the database catalog, also it
release all the storage space it has acquired previously.
we can't rollback it as it is a ddl command.

but in case of DELETE TABLE command it just delete all the
records but not relaese the spaces it acquires .it can be
rollback as it is a dml command.

Is This Answer Correct ?    17 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the syntax for seeing the columns and data types of a table in the db2 database?

576


How to find primary key of a table in db2?

607


How can record locking be achieved in those DB2 versions which do not support it?

620


How do I delete a table in db2?

642


Who uses db2?

569






Are view updateable?

627


How to create db2 table in mainframe?

629


i tried to copy some records from microsoft excel to as-400 physical file through "Bosanova" emulation. Out of 14000 records only 12000 records copies and subsequently programe started to hang. Then, i closed the program forcefully. I did' under stand the problem. Also when i try to compile the physical file it is showing as "The file in use". How to overcome this problem?

2044


How would you find out the total number of rows in a db2 table?

573


What is check constraint in db2?

602


If the cursor is kept open followed the issuing of commit, what is the procedure to leave the cursor that way?

695


What is the use of commit in db2?

628


In case if at some point of time db2 is down, would that impact the pre-compilation process of a db2-cobol program?

575


What language is db2 written in?

593


What is db2 instance?

590