Combine two MYSQL table with same column Name

后端 未结 4 1191
猫巷女王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:22

    You can use :-

    select * from(
    select 'Scheduleed' as Caption ,edition,time from scheduletime
    
    union all
    
    select 'actual' as Caption,edition,time from actualtime
    )x 
    

提交回复
热议问题