After you have created an upload configuration the tool creates 'java.sql.PreparedStatements' for each selected table (listed in the section SaveOrder). The structure of the prepared statements depends on the Datasource section:
.NEXTVAL
or <sequence_name>.CURRVAL
respectively will be inserted.If you import data into DATE
columns the data are always wrapped
in the function TO_DATE(<value>,'<datasyntax>')
.
Example:
INSERT INTO mytable (col1, col2, col3) VALUES (
mysequence.NEXTVAL, // data from sequence
?, // placeholder for file data
1, // selected data from parameter or a const value
TO_DATE(?,'DD.MM.YYYY'), // placeholder for file data, when insert into a DATE
column
(SELECT prv_id FROM providers WHERE name = ?) // subquery
)