Unique and Nonunique Indexes (195)
Indexes can be unique or nonunique. Unique indexes guarantee that no two rows of a
table have duplicate values in the key column (or columns). Nonunique indexes do
not impose this restriction on the column values.
Oracle recommends that unique indexes be created explicitly, using CREATE UNIQUE
INDEX. Creating unique indexes through a primary key or unique constraint is not
guaranteed to create a new index, and the index they create is not guaranteed to be a
unique index.
唯一索引和非唯一索引
1. 在一個表上建立唯一索引能夠保證此表的索引列不存在重複值.
2. Oracle 建議使用 CREATE UNIQUE INDEX 語句顯式地建立唯一索引.
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/10599713/viewspace-982355/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 翻譯(九)——Clustered Indexes: Stairway to SQL Server Indexes Level 3IndexAISQLServer
- SWUST OJ:195: Buyer
- unique 用法
- Unique Array
- [20180510]20 Indexes.txtIndex
- PostgreSQL DBA(45) - Hypothetical Indexes in PostgreSQLSQLIndex
- PTA甲級——Be Unique
- SQL Server Unique ConstratintsSQLServer
- MySQL 8 新特性之Invisible IndexesMySqlIndex
- [20202117]Function based indexes and cursor sharing.txtFunctionIndex
- PostgreSQL DBA(195) - Limit&執行計劃SQLMIT
- UVA 11572 Unique snowflakes (滑窗)
- LeetCode之Unique Email Addresses(Kotlin)LeetCodeAIKotlin
- PostgreSQL DBA(194) - Unique&NULLSQLNull
- [20220414]Function based indexes and cursor sharing2.txtFunctionIndex
- PostgreSQL DBA(159) - pgAdmin(Allow vacuum command to process indexes in paralleSQLIndex
- 深入 C++ 的 unique_ptrC++
- LeetCode Unique Paths(062)解法總結LeetCode
- LeetCode之Unique Morse Code Words(Kotlin)LeetCodeKotlin
- Oracle 19c Concepts(03):Indexes and Index-Organized TablesOracleIndexZed
- Oracle 19C 無法啟用Auto Indexes特性OracleIndex
- cmu15545筆記-索引併發控制(Concurrent Indexes)筆記索引Index
- 慎用PHP的unset、array_unique方法PHP
- mysql索引型別:FULLTEXT、NORMAL、SPATIAL、UNIQUEMySql索引型別ORM
- [LeetCode] 2841. Maximum Sum of Almost Unique SubarrayLeetCode
- 工作195:解決key值不唯一的報錯
- 新功能初探 | MySQL 8.0 Multi-Valued Indexes功能簡述MySqlIndex
- [重慶思莊每日技術分享]-重建 oracle Bootstrap IndexesOraclebootIndex
- C++11中unique_ptr的使用C++
- Laravel unique驗證 排除當前記錄Laravel
- PostgreSQL 原始碼解讀(195)- 查詢#111(排序#4 - 實現)SQL原始碼排序
- MySQL 8.0 Reference Manual(讀書筆記54節--Optimization and Indexes(1))MySql筆記Index
- MySQL 8.0 Reference Manual(讀書筆記55節--Optimization and Indexes(2))MySql筆記Index
- [ABC 346] UNIQUE VISION Programming Contest 2024 Spring 題解Spring
- UNIQUE VISION Programming Contest 2024 Spring(AtCoder Beginner Contest 346)Spring
- 去重函式unique,sort,erase的應用函式
- 多執行緒05:unique_lock詳解執行緒
- 實現一個簡單的 std::unique_ptr
- mysql中key 、primary key 、unique key 與index區別MySqlIndex