This is what I\'m doing right now (name is UNIQUE):
name
UNIQUE
SELECT * FROM fruits WHERE name=\'apple\';
Che
You can use the IGNORE feature:
INSERT IGNORE INTO fruits VALUES ('apple')
If there is a key violation, it just skips this value