Converts the query result into an SQL query command and provides it into an external SQL server. It has the same functionality as the dbload command, and only the default value of the
rowretry option is different.
dboutput PROFILE [OPTIONS] table=TABLE FIELD, ...
JDBC connection profile. You can configure the connect profile in the web console.
Name of table where you want to input the data.
Field names to be provided in the database separated by a comma(
,). If you prefix the plus sign (
+) with the field name, it is recognized as a key column.
The field name must match the column name of the target table. If the field and column names do not match, use the rename command before the
dboutputcommand to match the name of the column in the SQL database.
- Size of processing unit to be applied to the database batch transaction. Larger units are more efficient because they are committed at once, but if the transaction fails, the number of rollback records also increases.
2000is recommended. If you do not specify a processing unit size, the processing speed may be slow because the command commits the transaction one by one.
- Schema or database to switch after connecting.
- Option to retry transaction row by row when the batch transaction fails (default:
f). When enabled, performance may be degraded, but data loss can be minimized.
t: Retries the transaction row by row after the batch transaction fails.
f: NOT retry the transaction row by row after the batch transaction fails.
- Option to stop the query when transaction fails (default:
t: Stops the query when the transaction fails.
f: Skips the failed transaction and executes the next transaction.
- Type of SQL query: either
insert). If you set it to
update, you need to specify one or more fields as key columns. This command checks whether the SQL database has a key column by executing an SQL
SELECTstatement, and runs an
INSERTcommand if there is no key column or an
UPDATEcommand if there is a key column.