在jsp中向oracle中插入数据,数据库连接代码部分什么地方错了

日期:2013-02-27 11:50:34 人气:1

在jsp中向oracle中插入数据,数据库连接代码部分什么地方错了

cnn=DriverManager.getConnection("jdbc:oracle:thin@127.0.0.1:1521:orcl","scott","tiger"); 应该是: cnn=DriverManager.getConnection("jdbc:oracle:thin:@127.0.0.1:1521:orcl","scott","tiger"); 少了一个
    A+
热门评论