Toggle navigation
Home
New Query
Recent Queries
Discuss
Database tables
Database names
MediaWiki
Wikibase
Replicas browser and optimizer
Login
History
Fork
This query is marked as a draft
This query has been published
by
André Costa (WMSE)
.
Toggle Highlighting
SQL
# The text of the page itself is stored in the text table. #To retrieve the text of an article, MediaWiki first searches #for page_title in the page table. Then, page_latest is used #to search the revision table for rev_id, and rev_text_id is #obtained in the process. The value obtained for rev_text_id #is used to search for old_id in the text table to retrieve the text. SELECT p.page_title, r.rev_text_id FROM svwiki_p.revision r JOIN svwiki_p.externallinks el ON r.rev_page = el.el_from JOIN svwiki_p.page p ON r.rev_id = p.page_latest #JOIN svwiki_p.text t ON r.rev_text_id = t.old_id where el_index like "%sverigesradio.se/sida/artikel.aspx%" #where t.old_text like "%<ref>[http://sverigesradio.se%" limit 10
By running queries you agree to the
Cloud Services Terms of Use
and you irrevocably agree to release your SQL under
CC0 License
.
Submit Query
Stop Query
All SQL code is licensed under
CC0 License
.
Checking query status...