Skip to main content
Solved

Is there a way to run more than one sql query in SQLCreator?

  • February 25, 2020
  • 2 replies
  • 76 views

michael_m
Contributor
Forum|alt.badge.img+6

I am trying to modify an existing workbench which reads features from an Oracle database using an SQLCreator and writes them to a feature class in a geodatabase.

Currently there is a single query in the SQLCreator. I'm trying to add something to the output which requires a temporary table so I now need there to be three queries running in this SQLCreator:

Create temp_table;

Query to extract features from Oracle DB (and temp_table);

Drop temp_table;

 

Is it possible to run a series of queries in SQLCreator? If not is there some other way? The series of queries work fine when run directly against the database but I cannot get it to work in FME. My fallback is to create views in Oracle rather than using a temporary table but I'd rather not do that if I can avoid it.

 

Thanks,

Michael

Best answer by helmoet

Use 

FME_SQL_DELIMITER ; 

before all sql. See also discussion on this topic in this article

 

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.

2 replies

helmoet
Forum|alt.badge.img+8
  • 195 replies
  • Best Answer
  • February 25, 2020

Use 

FME_SQL_DELIMITER ; 

before all sql. See also discussion on this topic in this article

 


michael_m
Contributor
Forum|alt.badge.img+6
  • Author
  • Contributor
  • 16 replies
  • February 25, 2020

Use 

FME_SQL_DELIMITER ; 

before all sql. See also discussion on this topic in this article

 

Many thanks, @helmoet!