Oracle 基础

原创
2016-06-07 15:20:24 847浏览

删除了约束,索引还在,本来就是借用的索引????? 这句话,,我无从理解,, 语句是这样的,, SQL create table t (id int, name char(10)); insert into t values (1, 'sohu'); SQL create index t_idx on t(id); alter table t add constraint pk_id

删除了约束,索引还在,本来就是借用的索引?????

这句话,,我无从理解,,

语句是这样的,,

SQL>
create table t (id int, name char(10));
insert into t values (1, 'sohu');

SQL> create index t_idx on t(id);

alter table t add constraint pk_id primary key (id);

alter table t drop constraint pk_id;//为什么 删除了约束,索引还在 。又为什么 借用的索引

声明:本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn核实处理。