0
在我的數據庫表(whitelist_domain_data)我有域ID,網址數據基於其他預處理柱
網址列有多個URL像
http://www.dailystrength.org/c/Hidradenitis_Suppurativa/forum/8870995-solodyn-135-mg-works http://au.answers.yahoo.com/question/index?qid=20090325215905AA6UVOa http://navaspot.wordpress.com
我想獲取Postgres裏的數據獲取具有相同域的行。
表:Whitelist_domain_data
架構:ID,網址數據
select regexp_matches(url,'http\:\/\/([a-z0-9\.]+)\.org') as domain,
count(*)
from whitelist_domain_data
group by domain;
應返回:
QUES: 如何設計查詢,以獲取所有網址數據,如果該網址有域名「dailystrength.org」?
你的問題究竟是什麼?你有錯誤嗎?它會返回錯誤的結果嗎? –
如何檢索數據,如果該網址的域名爲「dailystrength.org」 – saravanan
「哪裏的網址類似」http:// dailystrength.org%' –