How we create a tables in db2,what is the process/syntax to
create a table with example plz?

Answer Posted / ratheesh nellikal

Answer posted by Dba is correct.
But in real time schenario we should be more specific.
eg:
CREATE TABLE SCHEMA.TABLENAME
(column1 DATATYPE,
column2 DATATYPE,
column3 DATATYPE)
IN tablespace_name
INDEX IN index_tablespace;

so try to follow this syntax (u can have more options with
this command like u can even specify the tablespace name wr
do u want to store ur LONG object 'LONG IN
long_tablespace' )

Cheers,
Ratheesh Nellikal

Is This Answer Correct ?    6 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is consistency token in db2?

648


Define declaration generator (dclgen).

669


What are packages in db2?

600


What is check constraint. Explain with example.

650


What are the 2 sqlcodes that are returned?

645






List down the types of triggers in the db2 database?

595


What do you mean by storage group (stogroup)?

587


What do you mean by between and in? Is between inclusive of specified range values?

674


What is dclgen (declaration generator)?

605


How to find the maximum value in a column in the db2 database?

617


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

1822


What is the cobol picture clause of the db2 data types date, time, timestamp?

621


What are types of indexes?

598


What is lock escalation in db2?

580


Explain about dbrm.

610