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 > create Table

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-16-04, 05:07
ThomBFG ThomBFG is offline
Registered User
 
Join Date: Aug 2004
Posts: 5
create Table

Hello,
I'm beginning with DB2 and I need to execute a script which create a table. However I don't fully understand the script:
Could anyone tell me what is 'UMS' in my script as well as 'TSUMSNR'?
Thanks very much in advance.

thomas

Script :

CREATE TABLE UMS.NR_NUMRIS_RETOUR
(
CODE_BARRE CHAR(14) NOT NULL,
TS_RETOUR TIMESTAMP NOT NULL,
CODE_DOC_CLASSMT CHAR(3) NOT NULL,
DATE_NUMRIS DATE NOT NULL,
DATE_RECPT_DOC DATE,
NOM_LOT_NUMRIS CHAR(40) NOT NULL,
TOP_ACCUSE_RECPT CHAR(1),
NB_PAGE_DOC SMALLINT NOT NULL,
UTIL_NUMRIS CHAR(8) NOT NULL,
TOP_PEC_APPLI CHAR(1),
DATE_CREATION DATE NOT NULL
WITH DEFAULT,
UTIL_CREATION CHAR(8) NOT NULL,
DATE_MAJ DATE NOT NULL
WITH DEFAULT,
UTIL_MAJ CHAR(8) NOT NULL
)
IN TSUMSNR
Reply With Quote
  #2 (permalink)  
Old 08-16-04, 08:14
AStefan AStefan is offline
Registered User
 
Join Date: Jun 2004
Posts: 57
schema and tablespace

UMS is the schema and TSUMSNR is the tablespace of the table.
If you have a sql script with many tables and want to use the same schema you can set in the script SET CURRENT SCHEMA = 'UMS ' and then create the tables without mentioning the schema.
All the tables will have the UMS schema.
Anyway look for tablespaces and schema's.
Reply With Quote
  #3 (permalink)  
Old 08-16-04, 10:24
ThomBFG ThomBFG is offline
Registered User
 
Join Date: Aug 2004
Posts: 5
Thank you.
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