Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Oracle Miscellaneous > Re: SELECT A CL...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 6 of 8 Topic 6815 of 7279
Post > Topic >>

Re: SELECT A CLOB - GROUP BY

by trpost@[EMAIL PROTECTED] Apr 7, 2008 at 03:06 PM

Is there anything that can be done with a PLSQL function to convert a
CLOB to a VARCHAR2 to a size larger than 4000 characters? I read that
PLSQL can handle a VARCHAR2 with 32767 charcaters, so is it possible
to write a function to return this conversion?

I found the following, but couldn't get it to compile:

CREATE OR REPLACE FUNCTION GetVarchar2 (iclCLOB IN OUT CLOB)
return VARCHAR2
IS

cnuMAX_LENGTH Constant number := 32767 ;
nuLength Number := DBMS_LOB.getlength(iclCLOB);
sbBuffer varchar2(32767);

DBMS_LOB.read(iclCLOB,nuLength,1,bBuffer);
return sbBuffer;
END

Thanks
 




 8 Posts in Topic:
SELECT A CLOB - GROUP BY
trpost@[EMAIL PROTECTED]   2008-04-03 14:56:42 
Re: SELECT A CLOB - GROUP BY
trpost@[EMAIL PROTECTED]   2008-04-04 07:47:39 
Re: SELECT A CLOB - GROUP BY
"Shakespeare" &  2008-04-04 17:21:20 
Re: SELECT A CLOB - GROUP BY
trpost@[EMAIL PROTECTED]   2008-04-04 08:49:42 
Re: SELECT A CLOB - GROUP BY
"Shakespeare" &  2008-04-04 17:53:54 
Re: SELECT A CLOB - GROUP BY
trpost@[EMAIL PROTECTED]   2008-04-07 15:06:20 
Re: SELECT A CLOB - GROUP BY
"Shakespeare" &  2008-04-09 09:53:51 
Re: SELECT A CLOB - GROUP BY
Ed Prochak <edprochak@  2008-04-08 05:17:12 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Mon Dec 1 20:31:14 CST 2008.