I have two tables t1 and t2. t1 has duplicated values. I need to insert all records from t1 to t2, but I don\'t want duplicates to occur in t2. I tried the following command whi
this should do it: INSERT IGNORE INTO test.t2 SELECT name2 FROM test.t1 Selects from one table and inserts into another.
INSERT IGNORE INTO test.t2 SELECT name2 FROM test.t1