Update fields in a database table based on the condition specified.
This transformer accepts any feature.
This transformer has no output ports.
Select the format and dataset where the table resides, including any format-specific parameters.
Specify the table to update. Click the Browse button to select the table from a list retrieved from the database. Note that you can only select this after you have completely specified the database format, dataset, and format-specific parameters.
Specify how to identify the rows to update. This can either be done through Match Column(s) or through a WHERE Clause.
Use a SQL WHERE clause to identify matching records to update. An example clause is the following:
id = 'roads'
Specify the columns and their values used to identify matching records. A record match occurs when the contents of the record for the columns listed exactly equal the corresponding value.
In the Table Column field, click the Browse button to select from a list of all the columns in the database table. Note this only works after you have completely specified the database format, dataset, format-specific parameters, and picked a table.
Specify which columns to update and the values to update them with. Columns not listed, that are disabled, or that are set to “<Do Nothing>” will not be updated.
This table entry widget is automatically populated after a table is selected from the Browse button in the Table parameter.
Click the Reload button, located at the right of the table entry widget, to repopulate the table with the columns from the database table. Note reloading only works after you have completely specified the database format, dataset, format-specific parameters, and picked a table.
Automatic population fills the table with columns and tries to set their values with a convenient initial state. If a column had a value prior to populating, that value will be maintained after populating. Columns not already mapped will default to incoming attributes of the same name if one exists, otherwise it will default to “Do Nothing”.
Note that when the Condition parameter is Match Column(s), columns being matched on cannot also be updated. Instead, consider using a WHERE clause for the condition.
Updates to geometry columns are supported if the corresponding writer supports the geometry.
Note: If geometry features are null, updates may produce inconsistent results. Some writers do not update null geometry, and others update null geometries to a value of null.
See the FME Readers and Writers help for more information on how writers will respond to updating existing rows.
Unlike FME Writers, fme_db_operation and fme_where attributes are not supported on DatabaseUpdater input features.
Using a set of menu options, transformer parameters can be assigned by referencing other elements in the workspace. More advanced functions, such as an advanced editor and an arithmetic editor, are also available in some transformers. To access a menu of these options, click beside the applicable parameter. For more information, see Transformer Parameter Menu Options.
Search for samples and information about this transformer on the FME Knowledge Center.
Associated FME function or factory: DatabaseUpdaterFactory