免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3189 | 回复: 1

为什么不能创建索引 [复制链接]

论坛徽章:
0
发表于 2013-03-16 18:33 |显示全部楼层
select * from tbl_sub12
test1   test2    test3
  1       2        3

create index test3_index on tbl_sub12(test3)
err:column,attirbute or period of TEST3 is not defined in db2inst1.tbl_sub12


建表语句:
create table tbl_sub12("test1", char(9) not null primary key,
                       "test2", char(9) not null unique,
                       "test3", char(9))

论坛徽章:
0
发表于 2013-04-18 17:55 |显示全部楼层
回复 1# o1987918


    在test3字段上添加“”
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP