-1
我有兩個表「CAR」 - 它的字段是 - (car_id,name),第二個表「CARSFORSALE」包含待售汽車(id,car_id,....) 我怎麼能得到「CARSFORSALE」表10行對每個car_id在一個查詢從兩個表中提取數據
意味着,如果我有7 car_id我的結果將是< = 70
我有兩個表「CAR」 - 它的字段是 - (car_id,name),第二個表「CARSFORSALE」包含待售汽車(id,car_id,....) 我怎麼能得到「CARSFORSALE」表10行對每個car_id在一個查詢從兩個表中提取數據
意味着,如果我有7 car_id我的結果將是< = 70
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