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


Please Help Members By Posting Answers For Below Questions

What is db2 connect?

595


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

644


How does coalesce work?

581


List out the data types available.

694


What are db2 objects?

633






Is ibm db2 open source?

580


What is the information associated with sysibm.syslinks table?

652


What are the different types of base tables?

578


Can we insert update delete in view?

570


Explain about open switch business continuity software?

557


What is load replace in db2?

558


My sql statement select avg(salary) from emp yields inaccurate results. Why?

637


Explain various types of locks in db2?

683


What is db2? Explain.

599


What is null in db2?

569