Is inserted into the data found that repeat the primary key, in violation of the uniqueness constraint, unable to write Excuse me each jumped a great god is there any way to these duplicate data continue to insert data into, or the repeat data directly covered in the past, ~ genuflect is begged
CodePudding user response:
Topic methods and ideas need to be strengthened,
I assume the table for the test, the primary key field for id, insert the source table for TMP
Insert into test Select * The from TMP a Left the join the test on b.i b d=Anderson d Where b.i d is null
CodePudding user response:
Methods and ideas of asking questions
CodePudding user response:
You should not insert, but the merge?
CodePudding user response:
May be describe not clear before, now the problems is that want to use A table of inserting data table B, but the table data in table B primary key repeat data, insert table B time error, think what method can exclude repetitive data, or ignore the duplicate data