Hello,
I am trying to load data into an xmltype, using sqlplus.
Since this load is part of a whole sequence of scripts, I can't jump ship half way, and use sql loader.
What I want to be able to do is load an xml schema into an xmltype field, by saying
However, I have hit two problems, the blah blah part is >4,000 characters (so it has to be split somehow) and it contains single quotes.
Thus, if I attempt to use replace or translate, it only works on the xml until it encounters the first single quote, and then errors.
Does anyone have any ideas as to how I can overcome this?
Regards
Tharg
Grinding away at things Oracular
I am trying to load data into an xmltype, using sqlplus.
Since this load is part of a whole sequence of scripts, I can't jump ship half way, and use sql loader.
What I want to be able to do is load an xml schema into an xmltype field, by saying
Code:
INSERT INTO MESSAGE_DOCUMENT VALUES (1,
XMLTYPE.createxml('blah blah blah');
However, I have hit two problems, the blah blah part is >4,000 characters (so it has to be split somehow) and it contains single quotes.
Thus, if I attempt to use replace or translate, it only works on the xml until it encounters the first single quote, and then errors.
Does anyone have any ideas as to how I can overcome this?
Regards
Tharg
Grinding away at things Oracular