SQLCreator

Generates FME features from the results of a SQL query executed once against a database. One FME feature is created for each row of the results of the SQL query.

Jump to Configuration

典型用途

  • 提取数据库记录根据SQL语句作为FME功能
  • 从数据库中端翻译添加功能
  • Execute a database join

How does it work?

The SQLCreator executes a SQL statement against a database. It has no input ports, and so (unlike theSQLExecutor) is not reliant on incoming features to trigger the statement - rather, the query is run仅一次

SQL语句变压器内部构造,使用使用的数据库中的相应的语法。如果数据库支持空间谓语空间查询的支持。

一个特征是用于查询结果的每一行输出,经由结果端口。

Examples

Usage Notes

  • 如果数据库支持空间谓词,可使用空间查询。
  • 该SQLCreator只能启用SQL数据源一起使用。要使用SQL和非SQL数据,考虑InlineQuerier
  • If all the data to be queried already exists in a SQL-capable data source, it is generally most efficient to use the SQLCreator orSQLExecutor作为查询和数据的滤波它进入FME环境之前直接由数据库中执行。
  • 对于简单的一个数据库表连接到的特点,DatabaseJoiner可能是更有效(如果密钥字段(一个或多个)被索引)。该DatabaseJoiner不需要SQL的知识。

选择一个功能接着方式

数据接合基于匹配属性,表达式和/或几何形状许多变压器可以执行。当选择一个特定接合作业,考虑因素包括复杂的加入,数据格式,索引,冲突处理,以及期望的结果。有些变压器使用SQL语法,并直接外部数据库的一些访问。他们可能会或可能不支持列表属性阅读和创作。

Generally, choosing the one that is most specific to the task you need to accomplish will provide the optimal performance results. If there is more than one way to do it (which is frequently the case), time spent on performance testing alternate methods may be worthwhile. Performance may vary greatly depending on the existence of key indexes when reading external tables (as opposed to features already in the workspace).

组态

输入端口

该SQLCreator没有输入端口。

Output Ports

参数

编辑变压器参数

使用一组菜单选项,变压器参数可以通过引用在工作区中的其它元件来分配。更先进的功能,如高级编辑,算术编辑,也是一些变压器可用。要访问这些选项的菜单,点击适用的参数旁边。欲了解更多信息,请参阅变压器Parameter Menu Options

定义值

有几种方法来定义一个变压器使用的值。最简单的是简单地在一个值或字符串,其可包括各种类型,如属性引用,数学和字符串函数,和工作空间参数的函数类型。有许多的工具和快捷方式,可以帮助构建值,一般可从邻近值字段的下拉上下文菜单。

对话框选项 - 表

变压器s with table-style parameters have additional tools for populating and manipulating values.

Reference

加工行为

不适用

特点控股

不适用

依赖 格式依赖性 - 可能需要一些格式的第三方驱动程序
FME许可级别 FME专业版及以上
别名
历史

FME社亚搏国际在线官网区

The FME Community is the place for demos, how-tos, articles, FAQs, and more. Get answers to your questions, learn from other users, and suggest, vote, and comment on new features.

搜索有关SQLCreator所有结果在FME社区。亚搏国际在线官网

Examples may contain information licensed under the Open Government Licence – Vancouver