Unioning two tables with different number of columns

后端 未结 5 1475
囚心锁ツ
囚心锁ツ 2020-11-22 11:23

I have two tables (Table A and Table B).

These have different number of columns - Say Table A has more columns.

How can I union these two table and get null

5条回答
  •  余生分开走
    2020-11-22 12:03

    if only 1 row, you can use join

    Select t1.Col1, t1.Col2, t1.Col3, t2.Col4, t2.Col5 from Table1 t1 join Table2 t2;
    

提交回复
热议问题