Combine two MYSQL table with same column Name

后端 未结 4 1189
猫巷女王i
猫巷女王i 2021-02-10 23:14

I have two table

table one is scheduletime

id    |   edition    | time   | 
1     |       1      | 9:23am |
2     |       2      | 10:23am|

4条回答
  •  长情又很酷
    2021-02-10 23:25

    select * from
    (select 'Scheduleed' as Caption, Edition as Edition, Time as Time from scheduletime
    
    union all
    
    select 'actual' as Caption, Edition as Edition, Time as Time from actualtime) as a
    
    order by Edition
    

    Maybe this will help you

提交回复
热议问题