日期:2014-05-16  浏览次数:20368 次

JAVASCRIP连接oracle9i数据库方法!!!!!!!
javascript怎么连接oracle数据库???????????????????

------解决方案--------------------
var strConnString = "Provider=OraOLEDB.Oracle;Data Source=fwq203;User ID=cyy05;Password=cyy05;PLSQLRset=1 "
var conn = new ActiveXObject( "ADODB.Connection ");
conn.open(strConnString);
var rs = conn.execute( "select * from tbar ");
while (!rs.EOF){

//alert( "qq ");
alert(rs.fields(i).name + ": " + rs.fields(i).value);
rs.moveNext();
}

rs.close();
conn.close();
conn = null;
这样写有问题请高手指点。