原文: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