Skip to main content
Question

Update a table using InlineQuerier


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?

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+17
  • 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+18
  • Safer
  • December 4, 2015
david_r wrote:

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
Influencer
  • December 4, 2015
fmelizard wrote:

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.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings