I want to disable a mysql insert if two rows have same values. For Example: If at row 1 title="title1" & url="www.example.com" AND also at row 2 title="title1" & url="www.example.com" I want only the first row to be inserted.
FOUND THE ANSWER:
ALTER TABLE `my_table` ADD UNIQUE `unique_index`(`column1`, `column2`);