临时表存储在用户临时表空间中。
考虑使用表变量来代替临时表。
临时表在进行引用之前必须先声明。
Temporary tables must be declared before they can be referenced. The following SQL procedure (created from the command line) demonstrates the process.
创建数据库时不存在用户临时表空间。
No user temporary table Spaces exist when a database is created.
扩展的索引或声明的临时表。
然后创建了引用临时表的过程p1。
Then a procedure p1 was created which references the temporary table.
清单9展示了一个已声明临时表的示例。
完成了通过存储过程声明临时表的封装。
It completes the encapsulation of the temporary table declaration through stored procedures.
没有创建用户临时表空间。
向临时表填充三行记录。
清单7给出了与临时表创建有关的统计信息。
Listing 7 shows the statistics associated with temporary-table creation.
Tempspace1——存储系统临时表。
已声明的全局临时表上的runstats。
所消耗的用户临时表空间中的空间将得到释放。
The consumed space in the user temporary table space will be freed.
应用程序编程改进:临时表和版本控制。
Application programming improvements: Temporal tables and versioning.
定义在声明的全局临时表上的索引不能被转移。
Indexes defined on a declared global temporary table cannot be transferred.
使用过程来初始化临时表可带来三个主要优点。
Using a procedure to initialize the temporary table yields three key benefits.
适当的使用临时表和表变量。
数据库中定义了五个常规的表空间和一个临时表空间。
In the database, five regular tablespaces and one temporary tablespace are defined. The following table shows the details of all tablespaces.
对于经常用于执行排序操作的临时表空间,也应该这样。
The same is true for temporary tablespaces often used for performing sort operations.
创建临时表,锁表。
确保系统目录和系统临时表空间中具有足够的自由空间。
Ensure that there is sufficient free space on the system catalog and the system temporary tablespaces.
清单4中在新创建的临时表上演示了删除表的过程。
The process of dropping a table is demonstrated on a newly created temporary table in Listing 4.
当声明临时表的位置与使用它的位置不同时,会引起问题。
Problems arise when the location where a temporary table is declared differs from where it may be used. Consider the following.
支持临时表、常规表以及范围和列表类型的分区表。
Supports temporary, regular and partitioned tables of different types of range and list.
至少应当创建一个用户临时表空间以允许定义已声明的临时表。
At least one user temporary table space should be created to allow the definition of declared temporary tables.
用户临时表空间: 用户临时表空间存储已声明的全局临时表。
User temporary table spaces: User temporary table spaces store declared global temporary tables.
这些统计信息存储在表示声明的临时表的目录信息的内存结构中。
These statistics are stored in memory structures that represent the catalog information for declared temporary tables.
用户临时表空间是可选的,默认情况下不会创建用户临时表空间。
User temporary table Spaces are optional and none are created by default.
应用推荐