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
Wurgl
.
Toggle Highlighting
SQL
SET @StartCat = 'See_in_Amerika'; SET @MaxCatTiefe = 99; WITH RECURSIVE Cat AS ( SELECT page_title, page_id, 0 AS level FROM page WHERE page_title = REPLACE(@StartCat, ' ', '_') AND page_namespace = 14 UNION SELECT SubCat.page_title, SubCat.page_id, Cat.level + 1 FROM page AS SubCat, categorylinks, Cat WHERE SubCat.page_namespace = 14 AND cl_from = SubCat.page_id AND cl_to = Cat.page_title AND cl_type = 'subcat' AND Cat.level < @MaxCatTiefe ) SELECT P.page_title, REGEXP_REPLACE('^(....)(..)(..)(..)(..)(..)$', '\\1-\\2-\\3 \\4:\\5:\\6', rev_timestamp), actor_name FROM page AS P, categorylinks, Cat, revision, actor WHERE cl_to = Cat.page_title AND cl_from = P.page_id AND P.page_namespace = 0 AND P.page_id = rev_page AND rev_parent_id = 0 AND actor_id = rev_actor
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...