select car,intime from CarIn;

select car,outtime from Carout;

select car,'出场' as type,outtime from Carout;       //type列不存在

select car,'入场' as type,intime from CarIn;           //type列不存在

多表查询:
select car,type,time from (
select car,'入场' as type,intime as time from CarIn
union all
select car,'出场' as type,outtime as time from Carout
)
--group by car
order by time

 

相关文章:

  • 2021-11-07
  • 2022-02-01
猜你喜欢
  • 2022-02-09
  • 2022-12-23
  • 2021-11-29
  • 2021-11-04
相关资源
相似解决方案