Q
Problem solve Get help with specific problems with your technologies, process and projects.

PL/SQL functions returning a string longer than 32767

I have a situation using PL/SQL functions where sometimes they return a string of length greater than 32767. Do you have a workaround for this?

In PL/SQL you can use the VARCHAR2 datatype to handle up to 32K. If you're finding that you have larger values than that, you'll need to look into a large object type i.e. CLOB. You could also use a LONG datatype but since Oracle has deprecated the LONG datatype, CLOB would be a better choice. With a CLOB you can actually handle up to 4GB!

For More Information


Dig Deeper on Using Oracle PL-SQL

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.

-ADS BY GOOGLE

SearchDataManagement

SearchBusinessAnalytics

SearchSAP

SearchSQLServer

TheServerSide.com

SearchDataCenter

SearchContentManagement

SearchHRSoftware

Close