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/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- [20180608]Wrong Results with IOT, Added Column and Secondary Index.txtIndex
- [20180609]Wrong Results with IOT, Added Column and Secondary Index2.txtIndex
- VirtualHost Examples
- simd examples
- crewAI-examplesAI
- gitglossary learning by examplesGit
- examples for oracle ref cursorsOracle
- "bare repository" learning by examples
- 採用secondary的冷備份的方式來新增新的secondary節點
- airflow DAG/PIPELINE examples referenceAI
- Ten examples of git-archiveGitHive
- Spectrum Entropy Prediction Assisted Channel Selection for Secondary Users
- secondary logon服務怎麼開啟?Win10系統secondary logon服務的開啟步驟GoWin10
- zero-shot-learning-definition-examples-comparison
- 什麼是 Angular library 的 secondary entry points?Angular
- cannot find trajectory file at ./examples/trajectory.txt
- 【Basic Abstract Algebra】Exercises for Section 2.1 — Definitions and examples
- Hadoop3.2.1 【 HDFS 】原始碼分析 : Secondary Namenode解析Hadoop原始碼
- basictracer-go原始碼閱讀——examples(完結)Go原始碼
- MIT6.S081 - Lecture1: Introduction and ExamplesMIT
- Index of /virtualboxIndex
- PostgreSQL:INDEXSQLIndex
- oracle invisible index與unusable index的區別OracleIndex
- Win10系統怎麼開啟secondary logon服務Win10Go
- v2.5.4,changelog:add examples in json schema 例子沒找到JSON
- Python, pandas: how to sort dataframe by index// Merge two dataframes by indexPythonIndex
- index.jspIndexJS
- null與indexNullIndex
- create index .. onlineIndex
- 小程式報錯Invoke event bindViewTap in page: pages/index/indexViewIndex
- Artificial Intelligence Index:2018年AI Index報告出爐IntelIndexAI
- PostgreSQL DBA(119) - pgAdmin(LIMIT:Index Scan vs Bitmap Index Scan)SQLMITIndex
- Elasticsearch之索引模板index template與索引別名index aliasElasticsearch索引Index
- Android APIs (Package Index)AndroidAPIPackageIndex
- z-index:autoIndex
- flag在index裡Index
- css z-indexCSSIndex
- enable_index_filterIndexFilter
- for while改變indexWhileIndex