Skip to main content
Question

Update a table using InlineQuerier

  • December 3, 2015
  • 4 replies
  • 77 views

Forum|alt.badge.img+1

Hi,

In FME2015 I want to use InlineQuerier with an UPDATE SQL statement to update data within my workflow. I'm pretty sure the syntax is correct and when I run the workflow there is no error, but nothing comes out of the output port that I generated.

However when I run a SELECT query on the same data with the InlineQuerier, this does output the desired results out of anoutput port.

Are you actually able to use UPDATE statements within InlineQuerier?

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

4 replies

david_r
Celebrity
  • December 3, 2015

An UPDATE statement does not return any data, that is probably why.

Also, I suspect the InlineQuerier wasn't meant for this scenario at all, so I'm not sure if it's even possible.

David


erik_jan
Contributor
Forum|alt.badge.img+26
  • Contributor
  • December 3, 2015

You can use the SQLExecutor to do inline Update statements.

Or use the DatabaseUpdator transformer to do a Update at the end of the transformation.


fmelizard
Safer
Forum|alt.badge.img+22
  • Safer
  • December 4, 2015

An UPDATE statement does not return any data, that is probably why.

Also, I suspect the InlineQuerier wasn't meant for this scenario at all, so I'm not sure if it's even possible.

David

I suspect you could do an UPDATE statement and then on a subsequent output port a Select and you'd get the updated data out that subsequent port.


takashi
Celebrity
  • December 4, 2015

I suspect you could do an UPDATE statement and then on a subsequent output port a Select and you'd get the updated data out that subsequent port.

I've tested that before from my curiosity, but the UPDATE statement didn't affect the resulting table from the subsequent SELECT.