使用以下ddl创建一个外部表。
外部表可以采用以下三种方法创建。
An external table can be created using one of the following three methods.
注意外部表的以下使用限制。
Be aware of the following restrictions on the use of external tables.
不能为外部表定义触发器。
使用以下查询创建外部表。
外部表数据文件不能进行任何形式的复制。
External table data files are excluded from all forms of replication.
使用清单11中的查询选择外部表中的行。
Select the rows from the external table using the query in Listing 11.
处理外部表中的内置opaque数据类型。
不能改变外部表模式。
而且,从外部表选择可以获得准备并得以执行。
Also, the selection from the external table can be prepared and executed.
NUMROWS:外部表可能拥有的大致行数。
NUMROWS: the approximate number of rows that the external table can possibly have.
LBAC安全性不能施加在外部表数据文件上。
LBAC security cannot be imposed on external table data files.
与这些外部表关联的数据文件不会受到任何更改。
The data files associated with the external tables will not undergo any changes.
由于不载入日志,外部表数据文件都不能进行复制。
Because they are not logged, the external table data files are excluded from all the replications.
用例5:采用使用动态sql和外部表的存储过程。
Case 5: Having stored procedure using dynamic SQL and external tables.
根据更好的元数据定义减少返回数据(使用外部表)。
Reduction of return data based on better definition of metadata (using External tables).
主服务器:在主服务器上允许外部表上的所有受支持操作。
Primary: all supported operations on external tables are allowed on the primary server.
除列指定之外,外部表的创建还包含一个using子句。
Creation of external tables also includes a USING clause in addition to the column specification.
NUMROWS用于提供一个外部表可能拥有的大致行数。
NUMROWS is used to provide an approximate number of rows that an external table can have.
通过索引扫描还是表扫描来访问外部表则取决于该表。
The outer table can be accessed by an index scan or by a table scan, depending on the table.
使用外部表时要获得最佳结果,请遵循以下最佳实践。
For the best results with external tables, follow these practices.
IDS服务器中引入的外部表满足了这个需求,并且改善了性能。
The introduction of external tables within the IDS server fulfils the requirement and provides better performance.
外部表对驻留在底层操作系统中的数据文件提供一个普通的表界面。
External tables provide a normal table interface to data files that reside in the underlying operating system.
外部表可以使用IDS中的常规基表支持的所有数据类型的列创建。
External tables can be created with the columns of all the data types supported by the regular base table in IDS.
外部表上的操作载入日志,因此,外部表上也不能实现事务支持。
Operations on external tables are not logged. Thus transaction support is not enabled on external tables.
外部表中的管道可用于在两个实例之间转移数据并在磁盘空间上保存数据。
Pipes in external tables can be used to transfer data between two instances and save on the disk space.
DATAFILES是每个外部表的必需子句,它指定读写数据的文件路径。
DATAFILES is a mandatory clause for each external table. It specifies the file path where the data can be read from or written to.
注意,在外部表创建之时,与该外部表关联的数据文件不需要存在。
Note that at the time of creating an external table, the data files associated with the external table need not exist.
外部表的数据加载是指从外部表中读取数据并加载到数据库表中。
Act of reading data from a table in the database and inserting it into an external table.
使用select语句从一个数据源选择构成外部表的数据(参见清单3)。
Using a select statement to select from a data source into an external table (see Listing 3).
应用推荐