Chinaunix

标题: DB2/400最大允许多少个字段? [打印本页]

作者: sinpool    时间: 2008-07-09 14:38
标题: DB2/400最大允许多少个字段?
DB2/400 数据库中,
一个表,最多可以定义多少字段呢?

拜托各位解答。
作者: goodbilly    时间: 2008-07-10 00:38
你想定义多少个..

我见过可以定义几百个的..
作者: qingzhou    时间: 2008-07-10 09:02
这个可能需要去查询IBM  red book,很久以前看过本OS400版本发布说明,里面有提到。
作者: sinpool    时间: 2008-07-10 09:11
谢谢两位的回答,
我打算定义300到400个字段。
作者: passthru    时间: 2008-07-10 11:07
根据system V5说明文档:

The maximum number of fields in a record format is 8000. If any of the fields in the record format are
date, time, timestamp, variable length, or allows the null value, then the actual maximum number of fields
can be less than 8000. The maximum number of fields can vary depending on the number of fields and
combinations of fields that occur within the record format. The maximum number of bytes in a record
format is 32 766 if variable length fields are not included and 32 740 if variable length fields are included.
Table 1 on page 22 describes rules for determining the total length of the record format.

iSeries
DDS Reference: Physical and Logical Files
Version 5

我曾经在北美面试遇时,笔试考这方面的知识。
作者: sinpool    时间: 2008-07-10 11:48
标题: 回复 #5 passthru 的帖子
感谢 passthru 的回答,
谢谢。
作者: roden    时间: 2008-07-10 20:03
还没有碰到过字段不够用的




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2