can we drop column from a table

Answer Posted / nitesh

yes we can drop any column
ALTER TABLE <TABLENAME> DROP COLUMN <COLUMNNAME>
e.g ALTER TABLE EMP DROP COLUMN NAME

Is This Answer Correct ?    20 Yes 36 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are types of indexes?

593


Which component is used to execute the sql statements?

621


How to run db2 command in windows?

652


What is a db2 collection?

605


While unloading huge amount of data from table. Suddenly job failed some error. Imagine 1M data unloading, In that 90% data unloaded only 10% left, So if want to unload the rest 10% what needs to be done? Whether do i need to start from top or anything ?

1819






How does coalesce work?

586


What is a cursor in programming?

595


Is db2 a programming language?

606


What is the maximum number of columns in a db2 table?

725


What is the difference between spufi and qmf?

639


What is performance tuning db2?

620


What is the difference between drop table and delete table?

554


What is db2 connect?

609


What does sqlcabc has?

633


Mention the length of physical storage of the given data types of db2 – date, timestamp, time

585