Oracle 数据去重问题 Insert into select Distinct
问题描述:将数据从中间表往业务表插入时,提示唯一键重复##
1 Insert into table1 (code)(select distinct code from table2)
上面的数据执行提示错误,我们选中后半部分查询,发现数据正常,code是唯一的
1 Create table table3 as select distinct code from table2;
2 Insert ...
原创
2019-02-19 15:45:01 ·
4353 阅读 ·
0 评论