激光卷尺精度:请教:ASP中,如果将数据库中的数据赋值到一个数组中??
来源:百度文库 编辑:神马品牌网 时间:2024/05/14 13:26:43
如题
连接数据库,连接表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