違反了 PRIMARY KEY 約束「不能在對象「插入重複鍵怎麼解決

insert into t_stock_factor select * from t_stock_factor_mat a where not exists(select 1 from t_stock_factor b where a.stock_code=b.stock_code and a.stock_date=b.stock_date and a.factor_name=b.facto
相關文章
相關標籤/搜索