Heim >Datenbank >MySQL-Tutorial >Oracle 基础

Oracle 基础

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-07 15:20:241322Durchsuche

删除了约束,索引还在,本来就是借用的索引????? 这句话,,我无从理解,, 语句是这样的,, 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;//为什么 删除了约束,索引还在 。又为什么   借用的索引
Stellungnahme:
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn