I am working on a project that has a piece of code like the one below:
String sql = \"SELECT MAX(\" + columnName + \") FROM \" + tableName; Prepa
StringBuilder sql = new StringBuilder(); sql.append("SELECT MAX(") .append(columnName) .append(") FROM ") .append(tableName); PreparedStatement ps = connection.prepareStatement(sql); ps.execute();