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
what is diffrence b/w file-aid tool and file-aid utility???
Comment whether the cursor is closed during commit or not.
How to find the number of rows in db2 tables?
what are bind concepts in db2 cobol?
What is dbrm? What it contains? When it will be created?
If I have a view which is a join of two or more tables, can this view be updateable?
SET is the ANSI standard for variable assignment, SELECT is not. SET can only assign one variable at a time, SELECT can make multiple assignments at once. If assigning from a query, SET can only assign a scalar value. If the query returns multiple values/rows then SET will raise an error. SELECT will assign one of the values to the variable and hide the fact that multiple values were returned (so you'd likely never know why something was going wrong elsewhere - have fun troubleshooting that one) When assigning from a query if there is no value returned then SET will assign NULL, where SELECT will not make the assignment at all (so the variable will not be changed from it's previous value) As far as speed differences - there are no direct differences between SET and SELECT. However SELECT's ability to make multiple assignments in one shot does give it a slight speed advantage over SET.
What is scrollable cursor in db2?
What do you mean by rollback?
What is node in db2?
What is bufferpool in db2?
Is the primary key a clustered index?
What is precompiler in db2?
On which levels locks can be applied?
How is a typical db2 batch pgm executed?