Home > Database > Mysql Tutorial > body text

Oracle 基础

WBOY
Release: 2016-06-07 15:20:24
Original
1260 people have browsed it

删除了约束,索引还在,本来就是借用的索引????? 这句话,,我无从理解,, 语句是这样的,, 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;//为什么 删除了约束,索引还在 。又为什么   借用的索引
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template