I have two tables with a list of URLs obtained from different sources.
I want to find shared records and put them in a separate table.
This is what I do:
- find the md5 hash of the url by extracting them.
- Save them in a column.
- I take one table as an array, run a loop through it and insert the values ββfrom another table, where the md5 hash is the same.
EDIT: Should I remove the URLs "http: //" and "www".
I want to know any other method that is better and faster using what I can do above.
I am using PHP + MySQL
source
share