使用以下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数据类型。
不能改变外部表模式。
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.
用例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.
使用外部表时要获得最佳结果,请遵循以下最佳实践。
For the best results with external tables, follow these practices.
通过索引扫描还是表扫描来访问外部表则取决于该表。
The outer table can be accessed by an index scan or by a table scan, depending on the table.
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.
注意,在外部表创建之时,与该外部表关联的数据文件不需要存在。
Note that at the time of creating an external table, the data files associated with the external table need not exist.
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.
使用select语句从一个数据源选择构成外部表的数据(参见清单3)。
Using a select statement to select from a data source into an external table (see Listing 3).
存储过程中的外部表创建、访问、加载和卸载支持允许您更轻松地执行批加载和卸载操作。
Support of external table creation, access, load, and unload from within the stored procedures makes it easier to perform the batch load and unload operations.
类似地,其他UDTs(比如opaque和complex)也可用于外部表。
Similarly, other UDTs, like opaque or complex, can also be used with the external tables.
一条内部表的记录将与来自外部表的每条合格的记录相匹配(内部输入基数值是1)。
One record of the inner table will match each qualifying record from the outer table (inner Input Cardinality value is 1).
外部表特性提供了一种简单直观的方法来通过SQL界面或存储过程执行加载和卸载操作。
External tables provide an easy and intuitive way to perform the unload and load operations through the SQL interface or stored procedures.
对于在外部表中找到的每一行,数据库服务器将在第二个(或内部)表中搜索其相应的行。
For every row found in the outer table, the database server searches for its corresponding row in the second (or inner) table.
应用推荐