主鍵 --查詢主鍵SELECT * from user_cons_columns c where c.table_name = '表名'; --刪除主鍵alter table 表名 drop constraint 主鍵名; --新增主鍵alter table 表名 add ...
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 推薦指數:
主鍵 --查詢主鍵SELECT * from user_cons_columns c where c.table_name = '表名'; --刪除主鍵alter table 表名 drop constraint 主鍵名; --新增主鍵alter table 表名 add ...
此文轉自:http://blog.sina.com.cn/s/blog_439f80c4010094n1.html 創建主鍵: alter table T add primary key (V) T是表名,V是列名 創建索引: create index ...
-- 刪除普通索引 drop index 索引名字 --創建普通索引 create index 索引名 on 表名(索引對應的列名); --刪除主鍵索引 alter table 表名 drop constraint 索引名 --創建主鍵索引 ...
= i.table_name and t.table_name = 要查詢的表 2、查找表的主鍵(包括名稱,構成列): ...
轉載:http://blog.itpub.net/20893244/viewspace-2132149/ ...
1、創建索引 create index 索引名 on 表名(列名); 2、刪除索引 drop index 索引名; 3、創建組合索引 create index 索引名 on 表名(列名1,,列名2); *查看目標表中已添加的索引 ...
1、創建索引 create index 索引名 on 表名(列名); 2、刪除索引 drop index 索引名; 3、創建組合索引 create index 索引名 on 表名(列名1,,列名2); *查看 ...
/*<br>* *查看目標表中已添加的索引 * */ --在數據庫中查找表名 select * from user_tables where table_name like 'tablename ...