首 页 ASP ASP.NET PHP JSP Ajax DIV+CSS JavaScript XML C#
MySQL MSSQL Access Oracle Linux Server 电脑技巧 网络安全 建站经验 其它

JSP如何连接DB2数据库

整理日期:2008年02月18日 【字体:


伊图教程网[www.etoow.com]
http://www.etoow.com/html/2008-02/1203320856.html
  %>
  <tr>
   <td><%=rs.getString(1)%></td>  //取出每一列的值,并显示
   <td><%=rs.getString(2)%></td>
   <td><%=rs.getString(3)%></td>
   <td><%=rs.getString(4)%></td>
   <td><%=rs.getString(5)%></td>
   <td><%=rs.getString(6)%></td>
  </tr>
  <%}
  rs.close();
  rs=null;
  stmt.close();
  stmt=null;
 }
 finally{            // 不管是否有出错,最后总要关闭连结
 if (conn!=null){
  conn.close();
 }
}
%>
</table>
<body>
<html>

  以上程序在AIX4.3+DB27.2+JDK1.3+TOMCAT4.1.6上运行通过。
Tags:
JSP如何连接DB2数据库
'http://www.etoow.com/html/2008-02/1203320856.html
1
 
信息搜索
  
联系我们关于本站广告服务设为首页 收藏本站友情链接网站地图
Copyright © Etoow.com Inc. All Rights Reserved