js怎么查询数据库数据
收起
云计算小粉
2018-05-10 19:58:30
3379
0
1
条回答
写回答
取消
提交回答
-
var conn = new ActiveXObject("ADODB.Connection");
var rs = new ActiveXObject("ADODB.Recordset");
var connectionstring = "Driver={MySQL ODBC 5.2w Driver};Server=localhost;Database=myDataBase;User=myUsername;
Password=myPassword;Option=3;Port=3306";
conn.open(connectionstring);
var sql = " select * from tb_col ";
rs.open(sql,conn);
2019-07-17 22:08:39