当前位置: 技术问答>java相关
哪位老大帮忙看看下面的代码什么问题???
来源: 互联网 发布时间:2015-07-24
本文导语: public static void main(String[] args){ Connection con = null; PreparedStatement st = null; ResultSet rs = null; String url = "jdbc:db2:DB_CFCC"; String subjid = null; try { ...
public static void main(String[] args){
Connection con = null;
PreparedStatement st = null;
ResultSet rs = null;
String url = "jdbc:db2:DB_CFCC";
String subjid = null;
try
{
Class.forName("COM.ibm.db2.jdbc.app.DB2Driver");
}
catch (Exception ex)
{
ex.printStackTrace();
}
try
{
con = DriverManager.getConnection(url,"db2admin","db2admin");
for(int i = 0;i
Connection con = null;
PreparedStatement st = null;
ResultSet rs = null;
String url = "jdbc:db2:DB_CFCC";
String subjid = null;
try
{
Class.forName("COM.ibm.db2.jdbc.app.DB2Driver");
}
catch (Exception ex)
{
ex.printStackTrace();
}
try
{
con = DriverManager.getConnection(url,"db2admin","db2admin");
for(int i = 0;i