<% set lybrs=server.CreateObject("adodb.recordset") lybrs.open"select*from lyb",conn,1,1 do while not lybrs.eof %> 只有这样才能读出数据库中的全部内容,而我用IF NOT LYBRS.EOF THEN 就只能读出1条信息,这是为什么呢???
<% conn="provider=microsoft.jet.oledb.4.0;data source=C:\Inetpub\wwwroot\images\access\wangye.mdb;persist security info=false" set strconn=Server.CreateObject("adodb.connection") strconn.open conn set lybrs=server.CreateObject("adodb.recordset") lybrs.open"select*from lyb",conn,1,1 if not lybrs.eof then %> ***要输出的内容*** <% lybrs.movenext end if lybrs.close set lybrs=nothing %>