郁闷死了SELECT TOP 5竟然没用
set rs3=conn.Execute("SELECT TOP 5 * FROM [shop] where ShopProvince='"&cityid&"' and ShopStatus >2 order by ShopStatus desc")
大家看我这个语句语法上没错吧
但是。。
if rs3.eof or rs3.bof then
Response.Write"没有记录"
else
do while not rs3.eof
Response.Write rs3(0) '这里就是要给我全都输出来了 数据库满足10条就输出10条 TOP没效果
rs3.movenext
loop
rs3.close
end if
求解 数据库用的是access.