如何将表中的字段设为关键字段?
有一表T1,结构如下:
AA BB CC DD
01 张华 80 90
........
我想把AA设为关键字段,应该怎么做?另外如何对BB建立索引?多谢!!!!
问题点数:60、回复次数:3Top
1 楼mosquitoxh((IT,中间件,架构)http://it.paiming.org/bbs)回复于 2006-03-11 12:03:54 得分 30
alter table t1 add constraint PK_t1 primary key (AA);Top
2 楼mosquitoxh((IT,中间件,架构)http://it.paiming.org/bbs)回复于 2006-03-11 12:20:03 得分 0
CREATE INDEX idx_t1 ON t1(bb);Top
3 楼chliang315()回复于 2006-03-11 20:20:13 得分 30
create index idx_test_bb on test(bb)
tablespace users
storage(initial 20k,
next 20k
pctincrease 75)
pctfree 10
pctused 60;Top




