免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3072 | 回复: 6
打印 上一主题 下一主题

DB2/400最大允许多少个字段? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-07-09 14:38 |只看该作者 |倒序浏览
DB2/400 数据库中,
一个表,最多可以定义多少字段呢?

拜托各位解答。

论坛徽章:
0
2 [报告]
发表于 2008-07-10 00:38 |只看该作者
你想定义多少个..

我见过可以定义几百个的..

论坛徽章:
0
3 [报告]
发表于 2008-07-10 09:02 |只看该作者
这个可能需要去查询IBM  red book,很久以前看过本OS400版本发布说明,里面有提到。

论坛徽章:
0
4 [报告]
发表于 2008-07-10 09:11 |只看该作者
谢谢两位的回答,
我打算定义300到400个字段。

论坛徽章:
0
5 [报告]
发表于 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

我曾经在北美面试遇时,笔试考这方面的知识。

评分

参与人数 1可用积分 +3 收起 理由
居士 + 3 我很赞同

查看全部评分

论坛徽章:
0
6 [报告]
发表于 2008-07-10 11:48 |只看该作者

回复 #5 passthru 的帖子

感谢 passthru 的回答,
谢谢。

论坛徽章:
0
7 [报告]
发表于 2008-07-10 20:03 |只看该作者
还没有碰到过字段不够用的
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP