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
Mention some fields that are a part of sqlca.
What is table space in db2?
Mention the way of highlighting as well as putting a cursor to use in a cobol program.
What kind of database is db2?
How to compare data between two tables in db2?
Mention the location where the output received from explain statement is stored.
What do you mean by between and in? Is between inclusive of specified range values?
How do I import a csv file into db2?
How many types of page locks can be held in db2?
Before you give the explain statement, what are the prerogatives?
Comment whether the cursor is closed during commit or not.
before altering a table is it necessary to lock ? if lock what is it ? how to do ? ifi want to lock a table what is that command ?
What are iseries servers?
What language is db2 written in?
How to create backup table in db2?