![](/img/trans.png)
[英]Union all in Vertica SQL based on tables with different number of columns?
[英]Union tables in Vertica SQL where tables have different order of columns?
只需按您想要的順序列出列:
select col1, col2, col3
from table1
union all
select col2, col1, null
from table2;
使用 SELECT INTO 和 UNION ALL 可以解決您的問題
SELECT * INTO TEMP TABLE RESULT FROM TABLE1
UNION ALL
SELECT * FROM TABLE2
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.