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 difference between isnull and coalesce?

792


How do I import data from excel to db2?

806


run jcl for cobol+db2 pgm?.. //jobcard //step001 exec pgm=ikjeft01 //systin dd * DSNSYSTEM(--------) RUN PROGRAM(MYPGMNAME) PLAN(-----), LIB(-------), PARMS(------) /* WHAT WILL U GIVE INSIDE THE BRACKETS... WHAT IS PLAN,PACKAGE,BIND?..PLAN N PACAKGES ARE GENERATED BY ?...

4034


What is the physical storage length of date data type?

970


What is db2 and what is the use of db2 optimizer?

823


Is ibm db2 open source?

795


What is the difference between using bind () and rebind () methods of naming class?

1055


What is the difference between db2 and oracle?

860


What is a db2 schema?

967


How many databases can be created inside an instance in db2 ?

802


What are bind parameters in db2?

786


What is ibm db2 database?

712


How do I delete a table in db2?

813


B37 abend during spufi?

1195


Can you use max on a char column?

822