int i = 0;
i = resultset.getInt("name");
if(i == 0)
{
.........;
}
i = resultset.getInt("name");
if(i == 0)
{
.........;
}
解决方案 »
- logic:iterate的offset属性
- 怎么在MyEclipse中显示web-inf文件夹下的classes目录
- ireport问题:为什么显示不出粗体和斜体呢?
- 用过javamai的请进l
- 用jsp如何获取本机的SQL Server服务器的名称
- JSP页在JBuilder下不能编译
- jsp通过连接池连接oracle时出现以下异常
- filter 如何排除一个文件和一个文件夹不被过滤?
- 给100分求教一个JSP小问题,,,
- JSP中访问MYSQL数库,,谁有现成的JAVABEAN啊,,最精典一点的,,,谢,,,,
- 怎么在type=file里缺省显示值啊
- linux+apache+tomcat中jsp文件中文正常显示而htm却乱码,怎么解决?
那么 这个 resultset.getInt(name); 是个什么东西?
if (resultset.getObject("name") != null) {
i = resultset.getInt("name");
}
public int getInt(String columnName)
throws SQLExceptionRetrieves the value of the designated column in the current row of this ResultSet object as an int in the Java programming language. Parameters:
columnName - the SQL name of the column
Returns:
the column value; if the value is SQL NULL, the value returned is 0
Throws:
SQLException - if a database access error occurs