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 > import data into DB2

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-23-03, 05:50
savas savas is offline
Registered User
 
Join Date: Jul 2003
Location: Hamburg, Germany
Posts: 31
Question import data into DB2

Hello,

I want to import data into my database (V8.1) and before I created the tables like this:

CREATE TABLE "MUSIK" OF "MUSIK_TYPE"
UNDER "MEDIUM" INHERIT SELECT PRIVILEGES

CREATE TYPE "MUSIK_TYPE" UNDER "MEDIUM_TYPE" AS
("GENRE" VARCHAR(15),
"EINHEIT" VARCHAR(10))
INSTANTIABLE
INLINE LENGTH 467
WITHOUT COMPARISONS
NOT FINAL
MODE DB2SQL

CREATE TYPE "MEDIUM_TYPE" AS
("NAME" VARCHAR(30),
"URL" DATALINK LINKTYPE URL NO LINK CONTROL,
"PREIS" PREIS_TYPE,
"BILD" BLOB(500K) NOT LOGGED)
INSTANTIABLE
INLINE LENGTH 418
WITHOUT COMPARISONS
NOT FINAL
REF USING INTEGER
MODE DB2SQL

What is the correct i m p o r t instruction, because of MEDIUM_TYPE and PREIS_TYPE ?

Perhaps something like this:
"import from musik.del of DEL insert into musik(oid, name, url, preis_type(wert, waehrung), genre, einheit)" ???

Thanks in advance

S.C.
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