When I wish to use SQL queries in Java, I usually hold them in final String variables. Now, when the string is too large, it goes out of page breadth, and we either have to
This is quite close: how to paste your SQL indented with leading whitespace: https://stackoverflow.com/a/121513/1665128
String sql = "SELECT\n" + " *\n" + " FROM\n" + " something\n" + " WHERE\n" + " id=4;";