目标:我想打印以下 SQL 语句的输出。通常我使用rs.getString("rowname")
SUM 并没有指定 COLUMN,所以我对如何做到这一点有点困惑。
SELECT SUM(HOURS) FROM RESOURCE WHERE DATE = '02/08/2013'; --Actual SQL Query as used below
ResultSet rs = stat.executeQuery("SELECT SUM(HOURS) FROM RESOURCE WHERE DATE = '02/08/2013';");
out.println("<tr>");
out.println("<td>" + rs.get + "</td>");
out.println("</tr>");
}