JDBC的连接操作
-
public class jdbc {
-
public static final String DRIVER="org.gjt.mm.mysql.Driver";
-
public static void main(String[] args){
-
try{
-
System.out.println(Class.forName(DRIVER)) ;
-
}catch(ClassNotFoundException e){
-
e.printStackTrace() ;
-
}
-
}
-
}