Examples of Secondary Index
引用自http://developer.mimer.com/documentation/html_92/Mimer_SQL_Mobile_DocSet/Defining_Database9.html
Create a secondary index called ITM_RELEASE_DATE on the RELEASE_DATE column in the ITEMS table:
CREATE INDEX itm_release_date ON items(release_date);
Primary key columns may also be included in a secondary index. If a table has the primary key
columns A, B, and C, the primary index would cover all three columns of the primary key.
The following combinations of the columns in the primary key are automatically indexed: A, AB, and
ABC. In addition, you could create secondary indexes on columns B, C, BC, AC etc.
An index may also be defined as UNIQUE, which means that the index value may only occur once in the
table. (For this purpose, NULL is treated as equal to NULL). However, it is preferable to use unique
constraints.
Create a UNIQUE secondary index called ITM_EAN_CODE on the EAN_CODE column in the ITEMS table:
CREATE UNIQUE INDEX itm_ean_code ON ITEMS(ean_code);
Sorting Indexes
The sorting order for indexes may be defined as ascending or descending. However, this makes no
difference to the efficiency of the index, since Mimer SQL searches indexes forwards or backwards
depending on the circumstances.
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/10599713/viewspace-983310/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- What is meant by Primary Index and Secondary IndexIndex
- Secondary Indexes on Index-Organized Tables (231)IndexZed
- simd examples
- [20180608]Wrong Results with IOT, Added Column and Secondary Index.txtIndex
- [20180609]Wrong Results with IOT, Added Column and Secondary Index2.txtIndex
- crewAI-examplesAI
- examples for oracle ref cursorsOracle
- gitglossary learning by examplesGit
- DBMS_REPAIR ExamplesAI
- Creating Secondary IndexesIndex
- Ten examples of git-archiveGitHive
- "bare repository" learning by examples
- Spark2.0.0 Install And ExamplesSpark
- Java的StateMachine(二)More ExamplesJavaMac
- Oracle Reporting 7 - Model ExamplesOracle
- The Art of Unit Testing: with examples in C#C#
- Some examples of using these views follow.View
- airflow DAG/PIPELINE examples referenceAI
- Regular Expressions in Grep Command with 10 Examples --referenceExpress
- Linux Crontab:15 Awesome Cron Job ExamplesLinux
- MongoDB系列四:解決secondary的讀操作MongoDB
- Mongodb在replicaset的secondary上補建索引MongoDB索引
- ORA-29857: domain indexes and/or secondary objects exist in the tablespaceAIIndexObject
- KEEP INDEX | DROP INDEXIndex
- java-string-tutorial-and-examples-beginners-programmingJava
- 15 Practical Grep Command Examples In Linux / UNIXLinux
- 10 Awesome Examples for Viewing Huge Log Files in UnixView
- zero-shot-learning-definition-examples-comparison
- rowid,index,INDEX FULL SCAN,INDEX FAST FULL SCAN|IndexAST
- secondary logon服務怎麼開啟?Win10系統secondary logon服務的開啟步驟GoWin10
- HowTo: The Ultimate Logrotate Command Tutorial with 10 Exampleslogrotate
- 12 Bash For Loop Examples for Your Linux Shell ScriptingOOPLinux
- Hadoop3.2.1 【 HDFS 】原始碼分析 : Secondary Namenode解析Hadoop原始碼
- 什麼是 Angular library 的 secondary entry points?Angular
- INDEX UNIQUE SCAN,INDEX FULL SCAN和INDEX FAST FULL SCANIndexAST
- Clustered Index Scan and Clustered Index SeekIndex
- oracle hint之full,index,index_asc,index_desc,index_combile示例OracleIndex
- IndexIndex