<pre>select distinct top 5 <br />car_id,car_uid,car_date,car_spic,car_name,car_zbbj,MemberUsername as car_username<br /> from DuanCar <br />left join DuanCarSort on DuanCar.car_ssort=DuanCarSort.car_sort_id or <br />DuanCar.car_msort=DuanCarSort.car_sort_id <br />left join DuanMember on DuanCar.car_uid=DuanMember.MemberUid <br />where car_name like '%雷克萨斯%' or car_sort_name like '%雷克萨斯%' <br />and car_id>(select isnull(max(car_id),0)from <br />(select distinct top 10 car_id from DuanCar<br /> left join DuanCarSort on DuanCar.car_ssort=DuanCarSort.car_sort_id or<br /> DuanCar.car_msort=DuanCarSort.car_sort_id <br />left join DuanMember on DuanCar.car_uid=DuanMember.MemberUid <br />where car_name like '%雷克萨斯%' or car_sort_name like '%雷克萨斯%' <br />order by car_id) as<br />TempA)order by car_id<br />这样加了后查出来的数据部正确的,请问下怎么加where 条件呢?<br /></pre>