Skip to content

Files

Failed to load latest commit information.

Latest commit

 Cannot retrieve latest commit at this time.

History

History

gh-2830

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Getting multiple sequence values using selectKey

mybatis/mybatis-3#2830

This approach is not generally recommended because you can only get "the number of total rows inserted".
If you need the number of rows inserted for each table separately, you should execute independent INSERT statement within a transaction.

It may also be possible to use a callable statement i.e. combination of the techniques explained in the following pages.

This demo requires a running Oracle instance.
You may need to edit the data source settings in /src/test/resources/application.properties.

Tested wtih Oracle 19.3.0.0.0
Driver version : 21.7.0.0.0

$ svn export https://github.com/harawata/mybatis-issues/trunk/gh-2830
$ cd gh-2830
$ mvn test