create table tmp_01
as
select */parallel(8)/* distinct a.* from tb_name(
这个表很大
) a,(select prodid from tmp_config where is_group = 1) b where a.prodid = b.prodid;
运行起来,一直不出结果,但是如果我把它写死进去,哪怕写死进去100个,也是分分钟就出来了,就像select */parallel(8)/* distinct a.* from tb_name a where prodid in (select prodid from tmp_config where prodid in ('-spidsdd','-yyyesdd','-umgfss'.......)),但这样肯定不科学,有啥好办法吗?