Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: XSU for PL/SQL or Java Question
Have a look at schema validated XMLTYPE.
Re your specific query, see SQLPlus trace below.
Regards
Mike
TESSELLA Michael.OShea_at_tessella.com
__/__/__/ Tessella Support Services plc
__/__/__/ 3 Vineyard Chambers, ABINGDON, OX14 3PX, England
__/__/__/ Tel: (44)(0)1235-555511 Fax: (44)(0)1235-553301
www.tessella.com Registered in England No. 1466429
SQL> CREATE TABLE my_table(col1 NUMBER,col2 DATE, col3 CLOB);
Table created.
SQL> INSERT INTO my_table
2 VALUES (1,SYSDATE,'test');
1 row created.
SQL> SQL> SET SERVEROUTPUT ON SIZE 100000 SQL> SQL> DECLARE
<ROW num="1">
<COL1>1</COL1>
<COL2>7/23/2005 10:1:23</COL2>
<COL3>test</COL3>
</ROW>
</ROWSET>
PL/SQL procedure successfully completed.
SQL> SQL> SQL> SELECT *
g3000 wrote:
> if I have this > > my_table > col1 number > col2 date > col3 clob > > ctx := dbms_xmlquery.set_context("Select * from my_table"); > > myclob := dbms_xmlquery.getXml( ctx); > > what would col3 data look like in the returned XML document? > > The answer is <col3> (CLOB) </col3> > > What I want to know is how can I get the actual ASCII characters for > col3 instead of the word CLOB in parenthesis?Received on Sat Jul 23 2005 - 04:11:09 CDT