Connection物件是代表Java与资料的连接,要执行Statement物件,它用Connection的createStatement()建立Statement物件
Connection conn=DriverManager.getConnection(url,user,password);
Statement stmt=conn.createStatement();
Connection物件是代表Java与资料的连接,要执行Statement物件,它用Connection的createStatement()建立Statement物件
Connection conn=DriverManager.getConnection(url,user,password);
Statement stmt=conn.createStatement();