原文:Oracle 查询主键和索引

ORACLE: 查主键名称:select from user constraintswhere table name AAA and constraint type P 查主键对应的列:select from user cons columnswhere table name AAA and constraint name PK AAA PK AAA 是主键名 查索引名称:select from ...

2017-07-03 10:43 0 13429 推荐指数:

查看详情

oracle删除主键,删除索引

主键 --查询主键SELECT * from user_cons_columns c where c.table_name = '表名'; --删除主键alter table 表名 drop constraint 主键名; --新增主键alter table 表名 add ...

Tue Sep 14 20:15:00 CST 2021 0 326
oracle 建立主键索引【转】

此文转自:http://blog.sina.com.cn/s/blog_439f80c4010094n1.html 创建主键: alter table T add primary key (V) T是表名,V是列名 创建索引: create index ...

Tue May 05 19:25:00 CST 2015 0 7901
oracle删除主键索引和普通索引

-- 删除普通索引 drop index 索引名字 --创建普通索引 create index 索引名 on 表名(索引对应的列名); --删除主键索引 alter table 表名 drop constraint 索引名 --创建主键索引 ...

Sat Jul 18 18:54:00 CST 2020 0 3068
Oracle创建索引查询索引

1、创建索引 create index 索引名 on 表名(列名); 2、删除索引 drop index 索引名; 3、创建组合索引 create index 索引名 on 表名(列名1,,列名2); *查看目标表中已添加的索引 ...

Wed Jun 05 19:31:00 CST 2019 1 58970
Oracle创建索引查询索引

1、创建索引 create index 索引名 on 表名(列名); 2、删除索引 drop index 索引名; 3、创建组合索引 create index 索引名 on 表名(列名1,,列名2); *查看 ...

Fri May 28 22:41:00 CST 2021 0 2109
oracle索引查询

/*<br>* *查看目标表中已添加的索引 * */ --在数据库中查找表名 select * from user_tables where table_name like 'tablename ...

Wed Jun 05 19:29:00 CST 2019 0 617
 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM