Query Variables - 23.1

Spectrum Dataflow Designer Guide

Version
23.1
Language
English
Product name
Spectrum Technology Platform
Title
Spectrum Dataflow Designer Guide
First publish date
2007
Last updated
2024-05-09
Published on
2024-05-09T23:01:03.226155

In the Read From DB stage, while defining the query, you can include variables instead of actual column names. Using variables in the query allows you to customize the query conditions at runtime (using the Dataflow Options) or through the Job Executor .

However, you can also provide Stage Options value in the Runtime tab and view the schema and sample of records to be fetched by the query by using the Regenerate Fields and Preview buttons respectively.

A variable is defined using the format #{variable}, and inserted in either the select or where clause of an SQL query.
Note: You can edit a query generated using the Visual Query Builder to include variables. However, the edited query will not be readable by the Visual Query Builder anymore. The Build SQL button is disabled when you include a variable in a manually written or generated SQL query.