Modify the SQL query. Perceptive Software Document Composition Studio
Pubblicità
Pubblicità
Modify the SQL query
When you were creating the reading script, an SQL query Q1 was generated that needs modification.
This query contains the SQL statement used to read the data fields.
To modify the SQL query, complete the following steps.
1. In the Editor window of the reading script, in the right pane, click the Q1 entry.
As a result, the query statement displays in the bottom pane of the Editor window.
2. In the bottom pane of the Editor window, complete the where clause of the SQL statement.
Example select * from BANKS where BNK_BIN=:ACC_BIN
Notes
The where clause typically contains variables that populate with values at runtime.
A variable is preceded by a colon.
The variable content is replaced at runtime according to the following rules.
If the parent data object contains a field that matches the name of the variable, the field value is used.
If nothing is found, the SYSTEM pool is checked for a variable of this name and the corresponding value is used.
148
Scarica
Pubblicità