Requires Free Membership to View
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
- Dozens more answers to tough Oracle questions from Karen Morton are available.
- The Best Oracle Web Links: tips, tutorials, scripts, and more.
- Have an Oracle or SQL tip to offer your fellow DBAs and developers? The best tips submitted will receive a cool prize. Submit your tip today!
- Ask your technical Oracle and SQL questions -- or help out your peers by answering them -- in our live discussion forums.
- Ask the Experts yourself: Our SQL, database design, Oracle, SQL Server, DB2, metadata, object-oriented and data warehousing gurus are waiting to answer your toughest questions.
This was first published in November 2002

Join the conversationComment
Share
Comments
Results
Contribute to the conversation