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 > insert large data clob datatype columns in sqC files

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-22-04, 18:18
jumbo2k jumbo2k is offline
Registered User
 
Join Date: Jan 2004
Posts: 1
Post insert large data into clob datatype columns using sqC files

hi,
I have the table structure
TABLE equip_data (
line_no INTEGER NOT NULL,
xml_data CLOB(5M) NOT NULL,
);

I have to read a flat file containing xml data in different lines. I have to read each line and load it into this table using .sqC . After reading the line from the file using C++ programme, i have the long string. I want to pass this file to an sqC programme which will insert the data in the table. I am not sure how to handle the insert for CLOB datatype. How do i declare host variables for it and how do i pass it to the insert statement? Is there any data structure that i can use like loc_t in informix for text datatype? Pl let me know.
Thank You.
Jumbo2k

Last edited by jumbo2k; 01-22-04 at 18:29.
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