with t as ( select sn=ROW_NUMBER() over(partition by t1.aid order by t1.aid),* from (select a.aid, a.contents, c.cid from table1 a join table2 b on a.aid=c.bid) t1 )
rs.open "select * from guide where city_name='北京' order by pai desc",conn,1,1 do while not rs.eof or rs.bof 。。 。。 。。 rs.movenext loop 这个sql语句在wap站里 本身有 ......