To insert values that depend on data from the source file, use this query option.
On the dialog are two textfields. The first one is for entering the query. Within this
query you can reference the source file and the parameters. Use the
placeholders <<FileValX>>
and <<ParamX>>.
The placeholders are case sensitive, where X is the file cloumn or parameter index
respectively.
Exemple:
Database |
Source file |
||||||||||||
|
|
||||||||||||
Query | |||||||||||||
SELECT prv_id FROM providers WHERE name = '<<FileVal1>>'
|
With help of the lower section you can define the behavior, in case the query returned null.
<<FileValX>>
and <<ParamX>>.
In relationship to the example above the statement may look like: INSERT INTO providers (prv_id, name) values (prv_sequence.NEXTVAL, '<<FileVal1>>')