vb6 mysql 无法查寻 求教
Dim conn As New ADODB.ConnectionDim rs As New ADODB.Recordset
Dim SQL As String
conn.ConnectionString = "Driver={MySQL ODBC 5.1 Driver};Server=127.0.0.1;Database=wang;User=root; Password=123456;Option=3; stmt=SET NAMES GB2312"
conn.Open
SQL = "Select * from uuu"
rs.Open SQL, conn
Print rs.RecordCount
输出结果为-1,
把命令改成 insert 可是插进去。为select取不出记录来,
mysql版本号为5.1.68