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 / anish
for the 1st question:
v can create table by the COMMAND
CREATE TABLE table-name
column1 char(9)
.
.
...so on
And according to your installation u have to mention the
tablespace name & DB name.
for the 2nd question:
ALTER TABLE table-name
MODIFY USER_ID CHAR(12);
| Is This Answer Correct ? | 6 Yes | 1 No |
Post New Answer View All Answers
What is bufferpool in db2?
What is consistency token in db2?
File not opened because library is *PROD and debug is UPDPROD(*NO). ? what may be the reason? how to solve it..?
List down the data types in the db2 database.
What is concurrency?
Explain package in db2 and its advantages?
What is db2 bind?
What is commit in db2?
What is collection in db2 bind?
What is the use of reorg in db2?
What is meant by union and union all?
What is a Foreign Key?
How do I add a column in db2?
How to find the maximum value in a column in the db2 database?
How to get the ddl of a table in db2?