ops$admin@CRMG>explain plan for
2 create index ttt on aaaa(id);
Explained.
PLAN_TABLE_OUTPUT
------------------------------------------------------------------------------------------------------------------------------------------------------
Plan hash value: 2861610204
-------------------------------------------------------------------------------
| Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
-------------------------------------------------------------------------------
| 0 | CREATE INDEX STATEMENT | | 409 | 5317 | 4 (0)| 00:00:01 |
| 1 | INDEX BUILD NON UNIQUE| TTT | | | | |
| 2 | SORT CREATE INDEX | | 409 | 5317 | | |
| 3 | TABLE ACCESS FULL | AAAA | 409 | 5317 | 3 (0)| 00:00:01 |
-------------------------------------------------------------------------------
Note
-----
- estimated index size: 65536 bytes
14 rows selected.
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/22034023/viewspace-702021/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/22034023/viewspace-702021/
本文展示了一个在数据库中创建名为TTT的非唯一索引的执行计划,该索引建立在表AAAA的id字段上。执行计划包括了创建索引的各个步骤,如全表扫描、排序创建索引等,并预估了索引大小为65536字节。
252

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



