如果中这样你可以这么做: <% set rs=server.createobject("ADODB.RECORDSET") sql="select top 1 * from aiticleconent order by updatetime desc" rs.open sql,conn,1,1 if not rs.eof then %> <img src="rs.fields("picpath")> <%else response.write "<center>没有找到图片!</center>" end if%>