% Set conn= Server.CreateObject("ADODB.Connection") connstr = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source="Server.MapPath("db2.mdb") conn.Open connstr Set rs = Server.CreateObject ("ADODB.Recordset") sql = "Select * from people order by id desc" rs.Open sql,conn,1,1 Do While Not rs.EOF Response.write rs("id")" | " rs.MoveNext Loop %> |
% Set conn = Server.CreateObject("ADODB.Connection") Set cmd = Server.CreateObject("ADODB.Command") conn.Open "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=" Server.MapPath("db2.mdb") cmd.ActiveConnection = conn cmd.CommandText = "Select * from people order by id desc" Set rs = cmd.Execute Do While Not rs.EOF Response.write rs("id")" | " rs.MoveNext Loop %> |
% Set conn = Server.CreateObject("ADODB.Connection") Set cmd = Server.CreateObject("ADODB.Command") conn.Open "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=" Server.MapPath("db2.mdb") cmd.ActiveConnection = conn cmd.CommandText = "Select * from people order by id desc" Set rs = cmd.Execute rsArray = rs.GetRows() For i = 0 To UBound(rsArray, 2) Response.Write rsArray(0, i)" | " Next %> |
標(biāo)簽:孝感 防城港 平頂山 馬鞍山 朝陽(yáng) 湖北 四平 遼陽(yáng)
巨人網(wǎng)絡(luò)通訊聲明:本文標(biāo)題《抽取10萬(wàn)條數(shù)據(jù),想起GetRows()》,本文關(guān)鍵詞 抽取,萬(wàn)條,數(shù)據(jù),想起,GetRows,;如發(fā)現(xiàn)本文內(nèi)容存在版權(quán)問(wèn)題,煩請(qǐng)?zhí)峁┫嚓P(guān)信息告之我們,我們將及時(shí)溝通與處理。本站內(nèi)容系統(tǒng)采集于網(wǎng)絡(luò),涉及言論、版權(quán)與本站無(wú)關(guān)。