Teradata Spatial和非空间编写器:功能类型参数
要访问功能类型参数,请单击齿轮图标在工作区中的功能类型上打开功能类型参数编辑器。要始终在WorkBench中显示编辑器,可以选择“查看”>“Windows”>“参数编辑器”。
General
所有功能类型都共享类似的常规参数,包括要素类型名称,读者或写字器名称和几何。
在大多数Writer功能类型参数对话框中,您还可以控制动态架构定义。某些数据库格式在输出表功能类型上接受表格限定符前缀。
看编辑编写器功能类型想要查询更多的信息。
这些参数仅适用于所选功能类型,而不是整个编写器。
小费:If a feature type parameter listed here conflicts with a writer-level parameter, then the writer parameter will be ignored and this feature type parameter will be used.
Table Settings
![Closed](http://www.baooytra.com/docs/fme/2017.1/html/FME_Desktop_Documentation/FME_ReadersWriters/Skins/Default/Stylesheets/Images/transparent.gif)
此参数允许用户指定如何将功能写入目标表。支持的功能操作是:
- 插:Append rows onto the destination table using attributes on features.
- 更新:使用特征上的属性更新现有表列。必须在行选择组中指定选择方法。
- 删除:删除existing table rows. A selection method must be specified in the Row Selection group.
- fme_db_operation:功能操作将由属性确定fme_db_operation在每个输入功能。必须在行选择组中指定选择方法。这value offme_db_operation将处理如下:
- 如果值为null,则为空或缺少,则将视为插入。
- 下一个值将匹配插入,更新和删除,案件不敏感。
- If there is no match, the feature will be rejected.
- 如果存在匹配,则将在该功能上执行匹配的功能操作。
小费:这fme_db_operationattribute will now cause feature rejection when Feature Operation is set to插那更新, 或者删除。此行为与以前版本的FME不同。
更多信息Feature Operations。
![Closed](http://www.baooytra.com/docs/fme/2017.1/html/FME_Desktop_Documentation/FME_ReadersWriters/Skins/Default/Stylesheets/Images/transparent.gif)
控制要素类型如何处理目标表或列表。这些选项可用:
- 利用现有的:写入现有表或列表。如果目标表/列表不存在,则转换将失败。
- 如果需要创建:Create destination table/list if it does not exist.
- 下降并创建:删除目标表/列表如果存在,然后创建它。在编写任何功能之前,作者将删除并重新创建表。在处理第一个输入功能时,将会覆盖表。如果没有将功能发送到要素类型,则不会覆盖相应的表。
- Truncate Existing:(此选项不适用于所有格式。)如果目标表/列表不存在,则转换将失败。否则,从现有表或列表中删除所有行。
行选择
When inserting into a table, Row Selection is ignored. When updating and deleting from a table, a condition needs to be specified for selecting which rows to operate on. This parameter group offers two methods to construct the selection condition:
![Closed](http://www.baooytra.com/docs/fme/2017.1/html/FME_Desktop_Documentation/FME_ReadersWriters/Skins/Default/Stylesheets/Images/transparent.gif)
相应列选择器对话框中指定的列将用于匹配目标行。将选择所有匹配行以进行更新或删除。如果对应于指定匹配列的任何特征属性包含空或缺少值,则该功能将被拒绝。
![Closed](http://www.baooytra.com/docs/fme/2017.1/html/FME_Desktop_Documentation/FME_ReadersWriters/Skins/Default/Stylesheets/Images/transparent.gif)
此参数打开一个在哪里子句Builder。您还可以在不启动构建器的情况下在内输入一个Where子句。使用单词启动子句是可选的在哪里。
Where子句构建器使用户可以轻松地引用功能属性值,目标表列和调用FME函数。在传递到目标数据库之前,首先将Where子句评估为FME表达式。
如果Where子句不正确或者其评估导致失败,翻译将失败。否则,如果Where子句通过FME评估,但它是SQL无效的,则该功能将被拒绝或翻译将失败。
对于高级用户,通过条件值编辑器创建的条件FME表达式可用于创建条款。
小费:您可以将Where子句设置为属性。这支持Workspace迁移和现有的工作流程亚搏在线fme_where.。(Direct support forfme_where.已被推翻。)向习惯使用的高级用户fme_where.那if Feature Operation is set to Update, Delete, orfme_db_operation那anfme_where.属性与匹配列冲突或WHERE子句将导致功能拒绝。