If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > db2 manual

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-26-03, 09:38
udbdb2 udbdb2 is offline
Registered User
 
Join Date: Nov 2003
Posts: 121
db2 manual

In whic manual can I find syntax for table,index creations ?
I didn't find in command ref. manual.
thanks!!
Reply With Quote
  #2 (permalink)  
Old 11-26-03, 09:40
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
Re: db2 manual

SQL Reference ...

You can find link to the IBM technical info page at www.db2click.com

Cheers
Sathyaram
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
Reply With Quote
  #3 (permalink)  
Old 11-26-03, 11:51
udbdb2 udbdb2 is offline
Registered User
 
Join Date: Nov 2003
Posts: 121
Re: db2 manual

Thanks!


Quote:
Originally posted by sathyaram_s
SQL Reference ...

You can find link to the IBM technical info page at www.db2click.com

Cheers
Sathyaram
Reply With Quote
  #4 (permalink)  
Old 12-11-03, 05:02
tupiex tupiex is offline
Registered User
 
Join Date: Dec 2003
Location: Johannesburg, South Africa
Posts: 18
Wink IBM

IBM Sql Guide

Syntax for Table Creation

CREATE TABLE owner.tablename
__________________
Divvy
Reply With Quote
  #5 (permalink)  
Old 12-11-03, 05:09
tupiex tupiex is offline
Registered User
 
Join Date: Dec 2003
Location: Johannesburg, South Africa
Posts: 18
Wink IBM

IBM Sql Guide

Hereis an Example:

Database Name is TSTDB01
Table SPace Name is TSTEST
Table NAme is TBTEST
Table/ Index Owner is TEST
Index Name is X1TEST_TKTNUM

CREATE TABLE TEST.TBTEST
( TKTNUM CHAR(14) NOT NULL,
TKTSEQ SMALLINT NOT NULL,
FOCLIST INTEGER NOT NULL,
ODORG CHAR(03) NOT NULL,
ODDES CHAR(03) NOT NULL,
ODFLAG CHAR(01) NOT NULL,
DEPDTM TIMESTAMP NOT NULL)
in TSTDB01.TSTEST ;

CREATE TYPE 2 INDEX TEST.X1TEST_TKTNUM
ON TEST.TBTEST
( TKTNUM ASC ,
TKTSEQ ASC )
USING STOGROUP TXTSG00
PRIQTY 11000
SECQTY 1100
ERASE NO
FREEPAGE 20
PCTFREE 15
GBPCACHE CHANGED
CLUSTER
BUFFERPOOL BP1
CLOSE NO
PIECESIZE 2 G ;
__________________
Divvy
Reply With Quote
  #6 (permalink)  
Old 12-11-03, 06:00
downtown downtown is offline
Registered User
 
Join Date: Dec 2003
Location: Italy
Posts: 11
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On