File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JDBC and the fly likes size of column and row in DB2 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "size of column and row in DB2" Watch "size of column and row in DB2" New topic
Author

size of column and row in DB2

Mike Yu
Ranch Hand

Joined: Nov 17, 2001
Posts: 175
Hi,
I have two questions about size of column and row in DB2:
(1) The maxiumn size of a column depends on the pagesize. For pagesize =4K, the maximun size of a varchar cloumn is 4000. Is the size of the Long Varchar column limited by the pagesize?
(2) In DB2 7.2, when I check the help for adding new column, it is said that I can add up to 500 columns, and the total size of the columns must not be gretaer than 4005. Is there a size limit for a entire row in a table? If so, how to calculate the size of a column with data type long varchar, timestamp, and so on.


Thanks,<br />Mike
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: size of column and row in DB2
 
Similar Threads
amount of text - performance
Mail Server - Database Design
clob setting
Maximum size of a row in sql
How to store an XML file as a string in database and retrieve in Java code