How we create a tables in DB2 ?Previously client has using
7 letters for user id,now he wants to increase the letters
from 7 to 12 for user id.How we can do it?
Answer Posted / ram prajapati
in any other database it is possible to alter the size of
the table's column but it is not possible do it in db2.
no modify command is there in db2 to be used in the
respective sql.
i'm a bit too sure about it so plz correct me when i'm wrong
with a reference link.plz.
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is cloudant database?
What are the different types of base tables?
What are the bind parameters ibm db2?
What do you mean by cursor?
Why do we need reorg in db2?
How is a typical db2 batch pgm executed?
What is db2 and what is the use of db2 optimizer?
Define predicate?
How do you pull up a query which was previously saved in qmf?
How can we read records for specific member in CL? AND rpg?
Which components manage deadlocks in db2?
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.
Which command is used to connect to a database in DB2 ? Give the Syntax.
What is check constraint. Explain with example.
What is query_cache_limit?