Skip to content

Multiple sql insert statements in JdbcBatchItemWriterBuilder #4488

Closed Answered by fmbenhassine
borjaDB asked this question in Q&A
Discussion options

You must be logged in to vote

The JdbcBatchItemWriter uses JdbcOperations#execute() and NamedParameterJdbcOperations#batchUpdate() from spring-jdbc which both expect a single SQL statement.

If you want to write to multiple tables, then you need a custom writer or a composite one. The following links should help:

Let me know if this helps or if you need more support on this.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@borjaDB
Comment options

Answer selected by borjaDB
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants