GCT1015
我以前在做merge操作时也出现这个问题,因为在merge into 时需要一个唯一的key值来决定merge into的操作是insert into还是update,而我merge的临时表中的key值不唯一,所以报这个错误了,解决办法是将临时表按照一定的规则先搂一遍全部数据并且key值唯一。比如:select a.* from MERGE_TEST_TMP a where a.mid = (select max(MERGE_TEST_TMP.Mid) from MERGE_TEST_TMP where MERGE_TEST_TMP.MKEY=a.mkey) order by a.Mid desc;