所以我试图循环遍历ADODB记录集的每一行,只是记录集.movenext()因错误EOF而中途停止 我传递这个错误后 我的表有95520行,Numverif持有值:47760 所以它只在中途迭代
var A= function(){reutrn A;}
console.log(A()()().....) /*no mater how many '()'s,it still returns the "function (){return A }" */
抱歉英文不好。
答案 0 :(得分:0)
现在可行:
Dim con As ADODB.Connection = New ADODB.Connection
Dim RecSet As New ADODB.Recordset
Dim numverif As Integer = 0
con.Open("Provider=SQLNCLI10;Server=xxxx.xx.xx.xxxx;Database=nameOfDB;Uid=user;Pwd=pass")
RecSet.Open("select * from table1", con, CursorTypeEnum.adOpenStatic, 1)
count.Text = RecSet.GetString(StringFormatEnum.adClipString, 10, " _ ", Environment.NewLine, "null")
Do While Not RecSet.EOF
Dim IdontCareAboutThisVariable As String = RecSet.GetString(StringFormatEnum.adClipString, 1, "`", , "NULL")
numverif= numverif + 1
Loop
con.Close()
count.Text = numverif.ToString