u*s 发帖数: 80 | 1 How to load DriverManager to JDBC?
Thanks. | c********x 发帖数: 93 | 2 what's your question? if you want to load a special JDBC driver and
connect to a database, you can try like below(you need modify the driver
name and location of DB accordingly)
Class.forName("my.sql.Driver").newInstance();
Connection connect =
DriverManager.getConnection("jdbc:mysql://hostname/dbname","yourlogin","yourpa
ssword");
【在 u*s 的大作中提到】 : How to load DriverManager to JDBC? : Thanks.
|
|