Skip to main content

Blue icon with a stream-like object flowing into a database. 数据流传入工具

使用“数据流传入”工具将数据从 Alteryx Designer 导入数据库内工作流。

“数据库内”工具无需将数据移出数据库即可对大型数据集进行融合与分析,与传统分析方法相比,它们可以显著提高性能。有关“数据库内”工具类别的详细信息,请参阅“数据库内概述”。

配置工具

Connection Name

连接 名称 :选择下拉列表以创建新连接、管理现有连接,或者从已设置的连接列表中选择连接。

  • 管理 连接 :选择以创建、编辑或删除连接。

  • 打开文件连接 :选择以浏览到已保存的数据库连接文件。

Creation Mode

创建模式 :选择写入数据的相应选项。选项包括:

  • 创建临时表格 :写入在会话结束前可用的临时表格。此选项对于构建数据库内预测宏非常有用,因为它会暂时保存元数据。如果选择此选项,“表格名称”字段将被禁用,并显示“[每次运行都会生成唯一的临时表名称]”。

  • 创建新表格 :创建新表格。不会覆盖现有的表。如果选择了 HDFS Avro 选项,则 avro.schema.literal 会在达到 4000 个字符时失败,并且会在创建表格时出现错误。请尝试缩短列名称的字符长度,或者选择更少的列

  • 覆盖表格(Drop) :完全丢弃现有表格并创建新表格。

Table Name

表格名称 :输入要创建或更新的数据库表格的名称。如果选择 创建临时表格 ,则 表格名称 字段将被禁用,并显示“[每次运行均会生成唯一的临时表名称]”。

Advanced Query Options

Use this section to define a Pre-SQL statement to execute before the In-DB execution. This option is compatible with all of the above creation modes. Use the 3-dot menu associated with the Pre-SQL statement field to launch the Configure Pre-SQL Statements window, which includes the SQL Editor. Note that Stored Procedures are not currently supported.

  • If your workflow includes a Data Stream In tool, this is the best place to put session variables in Pre-SQL. If there is no Data Stream In tool, then the Write Data In-DB tool is a good alternative. However, note that Write Data In-DB runs after any Data Stream In tools, if they exist.

  • Pre-SQL calls in Data Stream In should be primarily used for calls that need to be done before the creation of the Stream In table

Pre SQL statements are compatible with the following technologies: Bulk Loaders, OCI, ODBC, and OleDB.

Pre-SQL Statement: Define a SQL statement to execute before the In-DB execution.

注意

When the workflow runs, the Results window displays messages to show that the tool is executing SQL statements, along with a label (PreSQL).

All SQL statements are sent directly to the database. Pre-SQL statements do not return data. While SQL can return data, Designer doesn't do anything with it.

If there are multiple streams of In-DB tools, there is no guaranteed order of execution between different streams. The Results window displays the order.

Notes

注意

要将此工具与 Oracle 一起使用,您必须具有写入分配给 GLOBAL TEMPORARY 的临时空间的权限。请联系 Oracle 数据库管理员。

有关详细信息,请访问 库内连接工具