SQL中的Union Optimization的替代方案

时间:2018-01-31 09:54:04

标签: sql oracle

我希望优化以下查询,因为事务日志在执行查询时已经完整。

insert into db2inst1.FCT_STATIC_DA
select * from db2inst1.FCT_STATIC_DA_AP  union
select * from db2inst1.FCT_STATIC_DA_ASM  union
select * from db2inst1.FCT_STATIC_DA_BHR  union
select * from db2inst1.FCT_STATIC_DA_CHN  union
select * from db2inst1.FCT_STATIC_DA_DEL  union
select * from db2inst1.FCT_STATIC_DA_GUJ  union
select * from db2inst1.FCT_STATIC_DA_HAR  union
select * from db2inst1.FCT_STATIC_DA_HP  union
select * from db2inst1.FCT_STATIC_DA_JK  union
select * from db2inst1.FCT_STATIC_DA_KER  union
select * from db2inst1.FCT_STATIC_DA_KK  union
select * from db2inst1.FCT_STATIC_DA_KOL  union
select * from db2inst1.FCT_STATIC_DA_MAH  union
select * from db2inst1.FCT_STATIC_DA_MP  union
select * from db2inst1.FCT_STATIC_DA_MUM  union
select * from db2inst1.FCT_STATIC_DA_NE  union
select * from db2inst1.FCT_STATIC_DA_ORS  union
select * from db2inst1.FCT_STATIC_DA_PB  union
select * from db2inst1.FCT_STATIC_DA_RAJ  union
select * from db2inst1.FCT_STATIC_DA_TN  union
select * from db2inst1.FCT_STATIC_DA_UPE  union
select * from db2inst1.FCT_STATIC_DA_UPW  union
select * from db2inst1.FCT_STATIC_DA_WB

提前致谢

0 个答案:

没有答案