选取出来不同的数据
<%rs.open "<%rs.open "select DISTINCT user_id from starview ",conn,1,1 ",conn,1,1
hang=int(rs.recordcount/5)
if rs.recordcount mod 5>0 then hang=hang+1
if hang<3 then hang=3
for i=1 to hang%>
<tr>
<%for j=1 to 5
if not rs.eof then
rs2.open "select top 1 * from pic where is_star and user_id="&rs("user_id"),conn,1,1
if rs2("pic_width")>rs2("pic_height") then
style="width=171"
else
style="height=171"
end if%>
数据库是access 才能实现红色语句选出不同的id