开发者

How do I get similar domains from database using tags?

开发者 https://www.devze.com 2023-02-06 02:19 出处:网络
I do have 100k domain names with tags... table has got only two column called domain and tags. Tags开发者_Python百科 are stored with coma after each tags. I want fine how many domains with similar tag

I do have 100k domain names with tags... table has got only two column called domain and tags.

Tags开发者_Python百科 are stored with coma after each tags. I want fine how many domains with similar tags say search,google,searchengine,engine,web,reference with all of them or any of them in it. How do I do it?


Without knowing exactly how you want to implement this, here's some SQL to get you started:

SELECT *
FROM domains
WHERE 
  tag LIKE '*search*' OR
  tag LIKE '*google*' OR
  tag LIKE '*searchengine*' OR
  tag LIKE '*engine*' OR
  tag LIKE '*web*' OR
  tag LIKE '*reference*'
0

精彩评论

暂无评论...
验证码 换一张
取 消