[英]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.