MYSQL - Concatenate two tables

后端 未结 4 1117
时光说笑
时光说笑 2020-12-11 04:05

I have two tables as follows:

    TABLE A                    TABLE B
 StuID | actid              FacID | actid
  3       12                  98      17
  5           


        
4条回答
  •  Happy的楠姐
    2020-12-11 05:03

    You want UNION ALL:

    (SELECT * FROM tablea) UNION ALL (SELECT * FROM tableb)

    I think those parenthese are correct. I remember MySQL being fussy about this.

提交回复
热议问题