I use spring JdbcTemplateto execute an SQL query:
JdbcTemplate
JdbcTemplate template = new JdbcTemplate(ds); template.execute(sqlInsert); //returns void
How can I get the number of rows, how execute()does the method return void?
execute()
Call the update method JdbcTemplate. It will give you the number of rows processed as the return value.
You can use JdbcTemplate.update()for this occasion. this will return the number of updated or deleted rows.
JdbcTemplate.update()
Source: https://habr.com/ru/post/1570867/More articles:как читать таблицу файлов основных файлов ntfs с помощью С++ - c++C # Task Exception Management - c #Как установить многоядерный пакет на R v3.1.2? - rNested Wildcards - javaBoot insert 3 inline inline mesh - htmlPlaying a fragment after onNewIntent does not work - androidHow to send text message with chat extension in apple watch - iosWoocommerce - Как добавить изменение продукта из внешнего script - phpphpMyAdmin "Unable to load or save configuration" - phphow to update data in bootstrap table - jqueryAll Articles