java - Retrieving number of rows inserted with executeBatch() -


i'm implementing batch insertion of data mysql. used insert ignore when loop through int[] received, rows "ignored" returns value 1 need keep track of number of actual records being inserted.

    insert ignore demographics (mac_address,name,password,email,gender) values(?,?,?,?,?) 


Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -