一 背景
An index in a database table helps to speed up the selection of rows. An index is a sorted copy of selected database table fields. An additional field contains a pointer to the actual table rows. Sorting enables faster access to the rows in the table, for example in binary searches. A database table has at least one primary index defined by its key fields. It can also have one or more optional secondary indexes.
The primary index is a unique index constructed from the key fields of the primary key. It is always created automatically in AS ABAP. A maximum of one record exists in the table for each combination of index fields. If the primary index cannot be used to identify the results set, for example because no field from the primary index was selected, the table is scanned in full or an attempt is made to use a suitable secondary index (if one exists).
Alongside the primary index defined using the primary key, both unique and non-un

博客介绍了数据库表索引的作用,指出索引可加快行选择速度。自建表查询慢时可对相应字段做索引,对比显示做索引后查询速度大幅提升。还详细说明了通过SE11事物代码到数据库表创建索引的步骤,最后提到添加索引会占用更多磁盘。
最低0.47元/天 解锁文章
44

被折叠的 条评论
为什么被折叠?



