Search code examples
javasortingrecordsjdbctemplate

Sort DB records with JdbcTemplate


How to Sort DB records in DB table with JdbcTemplate?

What is the best solution, should execute method be used?


Solution

  • JdbcTemplate simply executes the SQL that you provide to it in the execute method, so use the standard SQL method: ORDER BY