
1个回答
展开全部
连接数据库,连接表aa,要将aa表中bb字段的所有记录添加到数组myarr()中,用for循环:
'rs是记录集
for i=1 to rs.recordcount
if not rs.eof then
myarr(i-1)=rs("bb")
end if
if not rs.eof then rs.movenext
next
'rs是记录集
for i=1 to rs.recordcount
if not rs.eof then
myarr(i-1)=rs("bb")
end if
if not rs.eof then rs.movenext
next
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询