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

i think, the size of variable is not possible to change,
please correct me if i am wrong.

so for the solutionwe can creat new table with change of
the size of user_id char(12)


and if you want the same name of table
step1 >creat a table for interface perpose with user_id char
(12)

2> insert all the data in the interface table
3> delete the main table.
4> create table with same name of main table with
user_id char(12)
5> insert data from interface table to main table.


now i think it will work.

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is db2 stogroup?

780


Define db2.

756


What r the comman abends in db2, jcl and cobol???????

1903


How do you find the maximum value in a column in db2?

735


What are foreign keys in db2?

703






What is the advantage in De-normalizing tables in DB2?

837


Highlight all the advantages that are attached to a package.

728


Which components manage deadlocks in db2?

704


How do I connect my db2 database to ibm?

672


Define check constraint.

721


When a COBOL-DB2 program in PRODUCTION is updating main tables and gone for long run, what have to do?

3208


What is the use of db2?

681


What is the use of db2 optimizer?

694


How is a typical db2 batch pgm executed?

720


can all users have the privilage to use the sql statement select * (dml)?

734