js怎么查询数据库数据
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);
赞0
踩0