ConnectionString= "Provider=Microsoft.Jet.OLEDB.4"/> ConnectionString= "Provider=Microsoft.Jet.OLEDB.4">
ACCESS SQL语句为何 返回空集,
<br /><br /><br />$conn = @new com("ADODB.Connection") or die ("ADO连接失败!"); <br />$conn->ConnectionString= "Provider=Microsoft.Jet.OLEDB.4.0;User Id=admin;jet OleDB:Database password=tttt;Data Source=d:/u200/tmkq.mdb";<br />$conn->Open(); <br />if ($emp_rang==""){<br /> $sql_str="select Employee.emp_id,Employee.emp_name From Employee";<br />}else{<br /> $sql_str='select Employee.emp_id,Employee.emp_name From Employee where Employee.emp_id="'.$emp_rang.'"';<br /><br />}<br />echo $sql_str;<br /><br />$rs_emp=$conn->Execute($sql_str);<br /><br />