How can I merge the columns from two tables into one output?

前端 未结 5 952
我寻月下人不归
我寻月下人不归 2020-12-07 12:07

I have two tables with similar information. Let\'s call them items_a and items_b. They should be one, but they are coming from different sources, s

5条回答
  •  天涯浪人
    2020-12-07 12:56

    SELECT col1,
      col2
    FROM
      (SELECT rownum X,col_table1 FROM table1) T1
    INNER JOIN
      (SELECT rownum Y, col_table2 FROM table2) T2
    ON T1.X=T2.Y;
    

提交回复
热议问题