Skip to main content
Solved

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

  • February 25, 2020
  • 2 replies
  • 44 views

michael_m
Contributor
Forum|alt.badge.img+1

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

 

View original
Did this help you find an answer to your question?

2 replies

helmoet
Forum|alt.badge.img+8
  • 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+1
  • Author
  • Contributor
  • February 25, 2020
helmoet wrote:

Use 

FME_SQL_DELIMITER ; 

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

 

Many thanks, @helmoet!


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