sql - find set of row, duplicate list, before insert -


itemprop = "text">

I have a table (this is a list of structures with 4 integers, first ID list id) < Pre> ID | IDL | IDA (empty). IDB (empty) | IDC1 | 1 | 2 | Empty | 1 2 | 1 | 4 | Empty | 1 3 | 1 | Empty | 1 | 1 4 | 2 | 2 | Empty | 1 5 | 2 | 4 | Empty | 1 6 | 3 | 6 | Empty | 1 7 | 3 | Empty | 4 | 1

Now I need to put 4th list in this table

  idA | IDB | IDC2 | Empty | 1 4 | Empty | 1 tap 1 | 1   

But, it already exists (list id = 1)

  idA | IDB | IDC2 | Empty | 1 4 | Empty | 1   

Other exists (idl = 2)

  idA | IDB | IDC2 | Empty | 1 4 | Empty | 1 tap 7 | 1   

does not exist.

How to get a duplicate before entering the table

Is the case (choose not in)

Try this example:

Disclaimer: In the example data that you provided lines 2 and 4, got a similar IDA, IDB, IDC set. If that column can not form a unique form and you have already got the taple in the copy table and you need a line per table per table per row, which makes Ill very difficult because in copy There is no way to tell the line for such a row in the original it is related.

Comments

Popular posts from this blog

c - Mpirun hangs when mpi send and recieve is put in a loop -

python - Apply coupon to a customer's subscription based on non-stripe related actions on the site -

java - Unable to get JDBC connection in Spring application to MySQL -