23 November 2010
Oracle: Convert XMLType to Varchar2
Use
xmltype.getStringVal()
or
xmltype.getClobVal()
based on the size.
declare
myxml_type xmltype;
mystr Varchar2(4000);
begin
mystr :=myxml_type.getStringVal();
end;
/
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment