免费注册 查看新帖 |

Chinaunix

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

informix 建立主键报550错误 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2010-03-26 16:12 |只看该作者 |倒序浏览
建表语句如下:
create table ob_credit_job
(
  task_id varchar( not null ,
  jobid varchar(255) not null ,
  primary key (task_id,jobid)
);
revoke all on ob_credit_job from "public";
执行后报错:
550: Total length of columns in constraint is too long.
请问该如何解决?谢谢

论坛徽章:
11
金牛座
日期:2015-03-19 16:56:22数据库技术版块每日发帖之星
日期:2016-08-02 06:20:00数据库技术版块每日发帖之星
日期:2016-04-24 06:20:00数据库技术版块每日发帖之星
日期:2016-04-13 06:20:00IT运维版块每日发帖之星
日期:2016-04-13 06:20:00数据库技术版块每日发帖之星
日期:2016-02-03 06:20:00数据库技术版块每日发帖之星
日期:2015-08-06 06:20:00季节之章:春
日期:2015-03-27 15:54:57羊年新春福章
日期:2015-03-27 15:54:37戌狗
日期:2015-03-19 16:56:41数据库技术版块每日发帖之星
日期:2016-08-18 06:20:00
2 [报告]
发表于 2010-03-26 17:01 |只看该作者
建表语句如下:
create table ob_credit_job
(
  task_id varchar( not null ,
  jobid varchar(255) ...
碧咸最帅 发表于 2010-03-26 16:12



   
Total length of columns in constraint is too long.

The total size of all the columns listed in a UNIQUE, PRIMARY KEY, or FOREIGN KEY clause is limited. The limit is the same as the restriction on the total size of all columns in a composite index. IBM Informix Dynamic Server allows 16 key parts and a width of 390 bytes on a 2K page platform. On 4K page platforms or using a non-default page size allows greater than 390 bytes for the width of indexed columns. IBM Informix SE supports 8 columns and a width of 126 bytes. Other Informix database servers allow 16 columns and 255 bytes. The limit depends on the database server in use, but all servers support a total of at least 120 bytes.

For additional information, see the CREATE TABLE statement in the IBM Informix Guide to SQL: Syntax.

论坛徽章:
2
2015年迎新春徽章
日期:2015-03-04 09:53:172015元宵节徽章
日期:2015-03-06 15:51:33
3 [报告]
发表于 2010-03-26 17:03 |只看该作者
没遇到过这个情况。。。

-550        在约束中的字段总长太长。

列在 UNIQUE、PRIMARY KEY 或者FOREIGN KEY 子句中的所有字段的总长是有限
的。这个限制取决于使用的数据库服务器,而所有的服务器至少支持 120 字节的总长。
这个限制,和复合索引中的所有字段总长的限制是一样的。更详细的信息,请参阅
《Informix SQL 指南:语法》中CREATE TABLE 语句。

-550
--------------------------------------------------------------------------------

Total length of columns in constraint is too long.

The total size of all the columns listed in a UNIQUE, PRIMARY KEY, or FOREIGN KEY clause is limited. The limit is the same as the restriction on the total size of all columns in a composite index. IBM Informix Dynamic Server allows 16 key parts and a width of 390 bytes on a 2K page platform. On 4K page platforms or using a non-default page size allows greater than 390 bytes for the width of indexed columns. IBM Informix SE supports 8 columns and a width of 126 bytes. Other Informix database servers allow 16 columns and 255 bytes. The limit depends on the database server in use, but all servers support a total of at least 120 bytes.

For additional information, see the CREATE TABLE statement in the IBM Informix Guide to SQL: Syntax.
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP