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 > Using of a dynamic INSERT on OS/400 (V5R2) when a DB2XML.XMLCLOB was defined

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-06-04, 11:40
staffone staffone is offline
Registered User
 
Join Date: Dec 2004
Posts: 1
Question Using of a dynamic INSERT on OS/400 (V5R2) when a DB2XML.XMLCLOB was defined

Hello all,

I have to transform this static statement:

EXEC SQL INSERT into lib.file values ('001', db2xml.xmlclobfromfile ('/user/web.xml')) end-exec

in a dynamic statement as follows :

EXEC SQL prepare S1 from :sql_statement end-exec
EXEC SQL EXECUTE S1 end-exec

My problem is to know how to define the content of
:sql_statement
because I receive from the external side the path where the message is stored

Could somebody help me ?

Thanks
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