can we drop column from a table

Answers were Sorted based on User's Feedback



can we drop column from a table..

Answer / srini

We can not drop a column. If we want we can append colume
with ALTER command.

Is This Answer Correct ?    30 Yes 9 No

can we drop column from a table..

Answer / prem

It depends on DB2 version.
In DB2 V9 we can drop a column.
In DB2 V8 we cant.

Is This Answer Correct ?    12 Yes 3 No

can we drop column from a table..

Answer / kumar

It is not possible directly. Indirectly we could do it.
Create a view by eliminating the column (th one to be
deleted). Drop the table or create a new table. Copy from
the view to the newly created table. Pl correct if I'm
wrong.

Is This Answer Correct ?    7 Yes 3 No

can we drop column from a table..

Answer / anand

yes .. can be dropped..

Is This Answer Correct ?    2 Yes 8 No

can we drop column from a table..

Answer / rbs

yes we can drop, but column should not have any data.
eg: ALTER TABLE <TB NAME> DROP COLUMN Col-name.

Is This Answer Correct ?    3 Yes 10 No

can we drop column from a table..

Answer / zoheb ali ahmed

Drops only take place at, minimum, table level.

Is This Answer Correct ?    0 Yes 13 No

can we drop column from a table..

Answer / 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

More DB2 Interview Questions

assume ther are 5000 records in a database and want to fetch using cursor. cursor fetches only 3000 records and fetch is not happening for remaining 2000 records. why it happens and how to rectify it

1 Answers   TCS,


What is view db2?

0 Answers  


What is the purpose of coding FETCH in a SQL SELECT query? Explain with an example in Detail?

4 Answers  


Explain about rct.

0 Answers  


What is clone table?

0 Answers  






What do the initials DDL and DML stand for and what is their meaning?

2 Answers  


How do I create a table MANAGER (EMP-NO, MANAGER) where MANAGER is a foreign key which references to EMP-NO in the same table? Give the exact DDL.

3 Answers  


What is a data page?

1 Answers  


How to create backup table in db2?

0 Answers  


For unmatched rows returned from an outer join, the column values in the other table are set to null e.g If A OUTER JOIN B returns some unmatched rows from A, the corresponding column values in B will be set to null. What can be done so that a null value is not displayed for these columns?

3 Answers  


What is a Resource Control Table(RCT)? Describe its characteristics.

3 Answers  


What is the use of commit in db2?

0 Answers  


Categories