- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
oracle索引表和嵌套表、数组(The Oracle index table and nested tables, array)
oracle索引表和嵌套表、数组(The Oracle index table and nested tables, array)
First, distinguish several conceptual problems:
In normal programming, for single line single columns, we can use scalar variables, for single column multiple columns, we can use PL/SQL records, and for single rows, we have to use the PL/SQL set
The PL/SQL set is equivalent to a composite variable of an array of high-level programming languages, including index tables (PL/SQL tables), nested tables (NESTED, TABLE), variable length arrays (VARRAY), and three types
The difference between an index table and a nested table:
The same: the number of elements is not limited, and the length of the array is limited by the number of elements
Difference: 1. definition method is different:
TYPE, TP_DEXINT, IS, TABLE, OF, NUMBER, BY, PLS_INTEGER, INDEX - - index table definitions [1]
TYPE, TP_DEXBIN, IS, TABLE, OF, NUMBER, BY, BINARY_INTEGER, INDEX - - index table definitions [2]
TYPE, TP_DEXVAR, IS, TABLE, OF, NUMBER, INDEX, BY, VARCHAR2 (10) -- index table definitions
TYPE, TP_QT, IS, TABLE, OF, NUMBER -- nested table definitions
Remarks: [1] [2] what is the difference? Both are integer types. [2] type variables are values that are computed
The ORACLE simulation performs no overflow, but the execution is slower because it is executed by the ORACLE simulation, while the
Pls_Integer is executed by hardware, which is directly operated by CPU, so that overflow occurs, but its execution speed is faster than that of the former
2. the index table index can be negative, and the nested table index must start from 1 (default)
T_DEX TP_DEX
T_DEX (-5): =1; - subscript can be negative
T_DEX (` Wang Xianwei ): =
3. when you use nested table variables, you must first initialize nested table variables using the build method before you refer to nested table elements within blocks
T_DEXVAR TP_DEXVAR: =TP_DEXVAR (1);
4. to use nested table types in a table column, you must first use the CREATE TYPE command to establis
您可能关注的文档
- cad常有命令(CAD often command).doc
- cad常见的快捷命令(Fast CAD common commands).doc
- cad快捷件(A fast CAD).doc
- cad快捷指令(CAD fast instruction).doc
- cad快捷命令(CAD shortcut).doc
- cad快捷方式(CAD shortcut).doc
- cad常用命令键盘快捷健(CAD commands commonly used keyboard shortcut key).doc
- cad快捷键一览(CAD shortcuts list).doc
- cad快捷键命令(CAD shortcut command).doc
- cad快捷键文本文档(The CAD shortcut key text document).doc
- oracle索引应用(Application of Oracle index).doc
- oracle索引与高性能sql介绍(Oracle index and high performance SQL).doc
- oracle索引知识(The Oracle index of knowledge).doc
- oracle组合索引使用详解(Oracle explain the use of the composite index).doc
- oracle--索引-详解(甲骨文——索引-详解).doc
- orcale系统表查阅(Orcale system access table).doc
- oracle递归查询(Oracle递归查询).doc
- osi的7层网络结构图和tcpip5层结构图(OSI 7 layer network structure and tcpip5 layer structure).doc
- osp与hasl比较(OSP与HASL比较).doc
- osp常见问题(OSP common problems).doc
文档评论(0)