I\'m new to mysql and was hoping someone could help.
I am writing a script that is inserting urls into a table. I don\'t want duplicate urls. So, what is the most efficient way to insert a url only if it isn\'t already in the table?
Is there something built-in to mysql to check this efficiently?
Thanks.
I am writing a script that is inserting urls into a table. I don\'t want duplicate urls. So, what is the most efficient way to insert a url only if it isn\'t already in the table?
Is there something built-in to mysql to check this efficiently?
Thanks.