How do I add a column to a table in db2?



How do I add a column to a table in db2?..

Answer / Vikrant Gautam

To add a column to a table in DB2, you can use the ALTER TABLE command followed by the ADD COLUMN clause. For example: ALTER TABLE table_name ADD COLUMN column_name data_type.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More DB2 Interview Questions

wht r the requirements for writing a cobol-db2 pgm ?

4 Answers   IBM,


What's the maximum number of characters that a tablename can have?

3 Answers  


what is the steps followed in EXPLAIN Process or EXPLAIN command. (Explain is for identifying the optimized access path but how or what is the steps for doing the EXPLAIN)

4 Answers   IBM,


what is the difference between declaring the cursor in WS section and Procedure division?

1 Answers   HCL,


Is there any advantage to denormalizing DB2 tables?

1 Answers  


What is universal database?

1 Answers  


How to restart a DB2 program?

1 Answers   Cognizant,


What is sqlca’s maximum length?

1 Answers  


How to find the maximum value in a column in the db2 database?

1 Answers  


What is the physical storage length of the data types: date, time, timestamp in the db2 database?

1 Answers  


What is reorg in database?

1 Answers  


What is a trigger in the db2 database?

1 Answers  


Categories