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 lob and xml on sametime

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-04-10, 21:49
tempe tempe is offline
Registered User
 
Join Date: Oct 2010
Posts: 27
import lob and xml on sametime

Hello

I want to import picture into table with xml and blob column on same time .. but not succeed..

i have created
create table figure (id int, pic_info XML, pic blob(50k));

and create input.del file
1,'<pic_info>Figure1. xxx</pic_info>' ,pic.gif

and run these command
import from c:\input.del of del lobs from c:\input.del modified by lobsinfile insert into figure;

..but no success
where i'm did wrong

Any help or suggestion will be grateful, thank you.
Reply With Quote
  #2 (permalink)  
Old 10-05-10, 10:04
tempe tempe is offline
Registered User
 
Join Date: Oct 2010
Posts: 27
problem solved
Reply With Quote
  #3 (permalink)  
Old 10-05-10, 10:38
nvk@vhv nvk@vhv is offline
Registered User
 
Join Date: Jan 2010
Posts: 294
Hi,

would you mind sharing the solution?

Cheers,
nvk
Reply With Quote
  #4 (permalink)  
Old 10-06-10, 00:25
tempe tempe is offline
Registered User
 
Join Date: Oct 2010
Posts: 27
create table figure (id int,pic blob(50k), pic_info XML) ;

1. create the xml file as example "test.xml"

2. create input.del file
1, pic.gif, <XDS FIL="test.xml"/>

3****n
import from c:\input.del of del lobs from c:\input.del modified by lobsinfile insert into figure;

*BTW i put all 3 files(test.xml, input.del, pic.gif) under directory 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