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 7 of 8 Topic 6815 of 7279
Post > Topic >>

Re: SELECT A CLOB - GROUP BY

by "Shakespeare" <whatsin@[EMAIL PROTECTED] > Apr 9, 2008 at 09:53 AM

<trpost@[EMAIL PROTECTED]
> schreef in bericht 
news:e2cb990f-1c6f-40ac-b154-c89f864104e8@[EMAIL PROTECTED]
> 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
>

Is the case_list the same for every 'PRODUCT_NAME'?
If it is, don't select it on forehand, but do the group by first and then 
look up the case list
If it's not, it makes no sense to do a group by at all.

Shakespeare
 




 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:23:34 CST 2008.