oracle.jdbc.driver.OracleDriver和oracle.jdbc.OracleDriver有什么区别?
4个回答
展开全部
oracle.jdbc.OracleDriver与oracle.jdbc.driver.OracleDriver完全一样的
估计是为了与老的版本兼容的问题
如果使用Oracle8i JDBC驱动程序,那么需要导入oracle.jdbc.driver.OracleDriver类
估计是为了与老的版本兼容的问题
如果使用Oracle8i JDBC驱动程序,那么需要导入oracle.jdbc.driver.OracleDriver类
本回答被提问者和网友采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
打开源代码 ,,比较了下
没发现啥区别
package oracle.jdbc;
public class OracleDriver extends oracle.jdbc.driver.OracleDriver
{
}
package oracle.jdbc.driver;
import java.lang.reflect.Method;
import java.sql.Connection;
import java.sql.Driver;
import java.sql.DriverManager;
import java.sql.DriverPropertyInfo;
import java.sql.SQLException;
import java.sql.Timestamp;
import java.util.Enumeration;
import java.util.Hashtable;
import java.util.Properties;
import oracle.jdbc.dbaccess.DBAccess;
import oracle.jdbc.dbaccess.DBError;
import oracle.jdbc.oci.OracleOCIConnection;
public class OracleDriver
implements Driver
{
public static final char slash_character = '/';
public static final char at_sign_character = '@';
static final String oracle_string = "oracle";
public static final String user_string = "user";
public static final String password_string = "password";
public static final String database_string = "database";
static final String server_string = "server";
static final String access_string = "access";
public static final String protocol_string = "protocol";
public static final String dll_string = "dll";
public static final String logon_as_internal_str = "internal_logon";
static final String prefetch_string = "prefetch";
.............
没发现啥区别
package oracle.jdbc;
public class OracleDriver extends oracle.jdbc.driver.OracleDriver
{
}
package oracle.jdbc.driver;
import java.lang.reflect.Method;
import java.sql.Connection;
import java.sql.Driver;
import java.sql.DriverManager;
import java.sql.DriverPropertyInfo;
import java.sql.SQLException;
import java.sql.Timestamp;
import java.util.Enumeration;
import java.util.Hashtable;
import java.util.Properties;
import oracle.jdbc.dbaccess.DBAccess;
import oracle.jdbc.dbaccess.DBError;
import oracle.jdbc.oci.OracleOCIConnection;
public class OracleDriver
implements Driver
{
public static final char slash_character = '/';
public static final char at_sign_character = '@';
static final String oracle_string = "oracle";
public static final String user_string = "user";
public static final String password_string = "password";
public static final String database_string = "database";
static final String server_string = "server";
static final String access_string = "access";
public static final String protocol_string = "protocol";
public static final String dll_string = "dll";
public static final String logon_as_internal_str = "internal_logon";
static final String prefetch_string = "prefetch";
.............
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询
广告 您可能关注的内容 |