First of, a simplified version: I am wondering if I can create a trigger to activate during INSERT (it's actually LOAD DATA INFILE) and NOT enter records for an RMA already in my table?
I have a table that has no records that are unique. Some may be legitimate duplicates but there is one field that I can use to know if the data has been entered or not. For instance
RMA Op Days
---------------------
213 Repair 0.10
213 Test 0.20
213 Repair 0.10
So I could do an index on the three columns together but as you see it's possible for an RMA to be in a step for the same amount of time twice so it's possible to have duplicate records. Basically, I want the Trigger to say if NEW.rma is in the table already, skip to the next row.
I found out there are ways to make a Trigger halt the Insert so I guess my question now is, how can I skip an insert and continue with the rest during a LOAD DATA INFILE call?