-1

我有两个表“CAR”-它的字段是-(car_id,name),第二个表“CARSFORSALE”包含待售汽车(id,car_id,....)我如何从“CARSFORSALE”表中获取 10 行一个查询中的每个 car_id

这意味着如果我有 7 car_id 我的结果将是 <=70

4

1 回答 1

0
select 1,car_id
union all
select 2,car_id
union all
select 3,car_id
union all
select 4,car_id
union all
select 5,car_id
union all
select 6,car_id
union all
select 7,car_id
union all
select 8,car_id
union all
select 9,car_id
union all
select 10,car_id
于 2013-10-13T20:55:14.823 回答