MYSQL - Concatenate two tables

后端 未结 4 1125
时光说笑
时光说笑 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条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-11 05:12

    its too easy select tableA.stuId,tableA.actId, tableB.facId,tableB.actId from tableA,tableB where tableA.actid=tableB.actid;`

提交回复
热议问题