January 2019
Beginner
556 pages
14h 19m
English
Indexes can be created using the CREATE INDEX statement. Since an index is a physical database object, you can specify the TABLESPACE and storage_parameter options. An index can be created on columns or expressions. Index entries can be sorted in an ASC or DESC order. Also, you can specify the sort order for NULL values. If an index is created for text fields, you can also specify the collation. The ONLY option, as shown in the following synopsis, is used to handle table inheritance and partitioning. If a table is partitioned, the index will also be created in partitions, by default, when the ONLY option is not specified.
The following is the synopsis for the index:
CREATE [ UNIQUE ] INDEX [ CONCURRENTLY ] [ [ IF NOT EXISTS ...
Read now
Unlock full access