Index on DB2 for z/OS: DB2 for z/OS 的索引

可以创建在任何表上的索引:

Unique Index:
An index that ensures that the value in a particular column or set of columns is unique.

Primary index:
A unique index on the primary key of the table.

Secondary index:
An index that is not a primary index.

Clustering index:
An index that ensures a logical grouping. When data is inserted into the table, the clustering index attempts to maintain the clustering sequence within the partition.

Expression-based index:
An index that is based on a general expression. Use expression-based indexes when you want an efficient evaluation of queries that involve a column-expression.In the CREATE INDEX or ALTER INDEX statement, the index key is defined as an expression rather than a column or set of columns.

接下来这些索引只能创建在Range partitioned表上:

Partitioned index:
An index that is physically partitioned.A partitioned index consists of multiple data sets. Each data set corresponds to a table partition.

Partitioning index (PI):
An index that corresponds to the columns that partition the table. These columns are called the partitioning key and are specified in the PARTITION BY clause of the CREATE TABLE statement.All partitioning indexes must also be partitioned. Partitioning indexes are not required.

Secondary index:
An index that is not a partitioning index in partitioned tables.

Data partitioned secondary index (DPSI):
A partitioned index that is not a partitioning index.These indexes are also called partitioned secondary indexes (PSIs).

Nonpartitioned secondary index (NPSI):
An index that is not partitioned or partitioning.These indexes are also called nonpartitioned indexes (NPIs).

Multi-piece index:
A nonpartitioned index that has multiple data sets. The data sets do not correspond to data partitions.Use a multi-piece index to spread a large index across multiple data sets and thus reduce the physical I/O contention on the index.

只能创建在含有XML列的表上的索引:

XML index:
An index that uses a particular XML pattern expression to index paths and values in XML documents that are stored in a single XML column.

所有索引都能有的共同属性:

Padded:
Any varying-length string columns in the index are padded with the default pad character to their maximum length.

Compressed:
The data is compressed to reduce the size of the index on disk.

时间: 2024-10-11 11:19:22

Index on DB2 for z/OS: DB2 for z/OS 的索引的相关文章

关于DB2的使用(DB2数据命令)

       公司所用的数据库有金仓和DB2 首先要用命令窗口直接打开db2需要在cmd中输入:db2cmd 1:启动DB2数据库:db2start 2:连接数据库:db2 connect to  数据库名称 3::创建数据库:db2 create db 数据库名称 4:删除数据库:  db2 drop db 数据库名称 5:查看表空间结构:db2 list tablespaces 6:查看系统表空间的物理路径 db2 list tablespaces container for 0 7:备份数

Python:关于os.path.isdir,os.path.exists,os.walk无法识别“~/" HOME目录的问题。

在编写Python脚本的时候,我发现,os.path.isdir,os.path.exists,os.walk 根本无法识别 ‘~/‘ 表示的HOME目录.例如: Python 2.7.12 (default, Jul 18 2016, 10:55:51) [GCC 6.1.1 20160621 (Red Hat 6.1.1-3)] on linux2 Type "help", "copyright", "credits" or "li

os模块 os.stat('path/filename') os.path.dirname(path) os.path.exists(path)  os.path.join(path1[, path2[, ...]])

提供对操作系统进行调用的接口 1 os.getcwd() 获取当前工作目录,即当前python脚本工作的目录路径 2 os.chdir("dirname")  改变当前脚本工作目录:相当于shell下cd 3 os.curdir  返回当前目录: ('.') 4 os.pardir  获取当前目录的父目录字符串名:('..') 5 os.makedirs('dirname1/dirname2')    可生成多层递归目录 6 os.removedirs('dirname1')    若

Python os.path.dirname(__file__) os.path.join(str,str)

Python os.path.dirname(__file__) Python os.path.join(str,str) (1).当"print os.path.dirname(__file__)"所在脚本是以完整路径被运行的, 那么将输出该脚本所在的完整路径,比如: python d:\pythonSrc\test\test.py 那么将输出 d:\pythonSrc\test (2).当"print os.path.dirname(__file__)"所在脚本

IDEA里的Keymap(Default、Default for GNOME、Default for KDE、Default for XWin、Eclipse、Eclipse(Mac OS X)、Emacs、JBuilder、Mac OS X、Mac OS X 10.5+、NetBeans、Visual Studio)(图文详解)

不多说,直接上干货! 1.File  ->  Settings 2. 以下是自带的 以上是什么意思呢? 答:是IDEA默认安装了很多的预设风格. 分别有: Default.Default for GNOME.Default for KDE.Default for XWin.Eclipse.Eclipse(Mac OS X).Emacs.JBuilder.Mac OS X.Mac OS X 10.5+.NetBeans.Visual Studio Intellij Idea提供了更丰富的快捷键,提

os.path.abs()与os.path.realpath()的一点区别

相同点 1. 两者都是返回绝对路径,如果参数path为空,则返回当前文件所在目录的绝对路径 当前py文件所在的目录是revise print(os.path.abspath("")) print(os.path.realpath("")) 运行结果: D:\python_workshop\python6\revise D:\python_workshop\python6\revise 2. 如果给一个不存在的文件名作为相对路径的path,会将当前所在目录和文件名拼接

Spring Boot连接DB2查询结果时报错“java.lang.AbstractMethodError: com.ibm.db2.jcc.t4.b.isValid(I)Z”的解决办法

关于在maven项目中如何添加DB2的坐标的详细,见:https://www.cnblogs.com/zifeiy/p/7918554.html Spring Boot项目中的application.properties文件内容如下: # DB Configuration for DB2 spring.datasource.url=jdbc:db2://localhost:50000/SAMPLE spring.datasource.username=zifeiy spring.datasour

db2脚本执行出现db2 command notfound

当执行数据库操作脚本时出现db2 command notfound 解决办法: 在脚本中添加下面一行 export PATH=$PATH:/opt/ibm/db2/V10.5/bin 当然,这个需要根据数据库版本不同做修改

[DB2]Linux下安装db2 v9.7

1.解压db2安装包 tar -zxvf v9.7_linuxx64_server.tar.gz 2.进入server目录下,执行安装检查 cd server ./db2prereqcheck 3.运行安装程序 [[email protected]]./db2_install 要选择另一个目录用于安装吗?[yes/no] --输入no默认安装opt下,选择yes自己输入安装目录 指定下列其中一个关键字以安装 DB2 产品 --输入ESE ESE 正在初始化 DB2 安装. 要执行的任务总数为:4