日期:2014-05-18  浏览次数:20498 次

高手帮忙解决一个SQL语句的问题!
我有这么一条SQL语句
select   top   9   c.id,c.name,c.type1,c.type2,t.price,t.[percent]   from   car   c,car_city   t   where   c.id=t.p_id   and   t.city_id=1   and   t.visible=1   order   by   t.adddate   desc

得出结果如下
id                     name                                                                                               type1                                                                                             type2                                                                                             price                                   percent                                                                                              
-----------   --------------------------------------------------   --------------------------------------------------   --------------------------------------------------   ---------------------   -----------------------------------------------------  
1021                 宾利Azure_Conv                                                                               宾利                                                                                                   宾利Azure                                                                                         .0000                                   0.0
609                   F3   旗舰型   GLX-i   NAVI                                                     &nbs