While creating a table, by mistake you have given size of one
field as 10. But as per requirement size should be 8. What is
your next step?

Answer Posted / mr.perfect

IF field is having empty in table , then we can reduce or
increase the size of the field, using the alter statement .
i.e . alter table <tablename>
modify <new columnname ><data type><new size>
if the data in the table is non-empyt, then we cannot alter
the table. better to delete the column and add the same
column to new size.

Is This Answer Correct ?    4 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between bind and rebind in db2?

1216


Explain the function of data manager.

832


What is a trigger in the db2 database?

841


What are union and union all?

763


Is ibm db2 free?

794


How do I create a view in db2?

816


Mention the definition of cobol in varchar field.

929


How do we specify index to include or not during bind process.

1886


How connect db2 database to datastage?

1016


can we view the access paths created by dbrm ? how ? thx

6700


What is meant by union and union all?

813


What os does db2 run on?

773


What is the difference between "db2ilist" and "db2 get instance" commands in DB2 Database Server?

1021


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

854


What is the default page size of buffer pools?

891