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
Xiplus
.
Toggle Highlighting
SQL
/*SET @ns = 14;*/ /*SET @nsn = "分類討論";*/ USE zhwiki_p; SELECT CONCAT("https://zh.wikipedia.org/w/index.php?title=", case when page.page_namespace+1 = 0 then "" when page.page_namespace+1 = 1 then "Talk:" when page.page_namespace+1 = 2 then "User:" when page.page_namespace+1 = 3 then "User talk:" when page.page_namespace+1 = 4 then "Wikpeida:" when page.page_namespace+1 = 5 then "Wikpeida talk:" when page.page_namespace+1 = 6 then "File:" when page.page_namespace+1 = 7 then "File talk:" when page.page_namespace+1 = 8 then "Mediawiki:" when page.page_namespace+1 = 9 then "Mediawiki talk:" when page.page_namespace+1 = 10 then "Template:" when page.page_namespace+1 = 11 then "Template talk:" when page.page_namespace+1 = 12 then "Help:" when page.page_namespace+1 = 13 then "Help talk:" when page.page_namespace+1 = 14 then "Category:" when page.page_namespace+1 = 15 then "Category talk:" when page.page_namespace+1 = 100 then "Portal:" when page.page_namespace+1 = 101 then "Portal talk:" when page.page_namespace+1 = 118 then "Draft:" when page.page_namespace+1 = 119 then "Draft talk:" when page.page_namespace+1 = 828 then "Module:" when page.page_namespace+1 = 829 then "Module talk:" end, ":", page.page_title, "&redirect=no ") AS "talk link", CONCAT( case when page.page_namespace+1 = 0 then "" when page.page_namespace+1 = 1 then "Talk:" when page.page_namespace+1 = 2 then "User:" when page.page_namespace+1 = 3 then "User talk:" when page.page_namespace+1 = 4 then "Wikpeida:" when page.page_namespace+1 = 5 then "Wikpeida talk:" when page.page_namespace+1 = 6 then "File:" when page.page_namespace+1 = 7 then "File talk:" when page.page_namespace+1 = 8 then "Mediawiki:" when page.page_namespace+1 = 9 then "Mediawiki talk:" when page.page_namespace+1 = 10 then "Template:" when page.page_namespace+1 = 11 then "Template talk:" when page.page_namespace+1 = 12 then "Help:" when page.page_namespace+1 = 13 then "Help talk:" when page.page_namespace+1 = 14 then "Category:" when page.page_namespace+1 = 15 then "Category talk:" when page.page_namespace+1 = 100 then "Portal:" when page.page_namespace+1 = 101 then "Portal talk:" when page.page_namespace+1 = 118 then "Draft:" when page.page_namespace+1 = 119 then "Draft talk:" when page.page_namespace+1 = 828 then "Module:" when page.page_namespace+1 = 829 then "Module talk:" end, ":", page.page_title) AS "talk" FROM page LEFT JOIN page AS page2 ON page.page_title = page2.page_title AND page.page_namespace = page2.page_namespace+1 WHERE /*page.page_namespace = (@ns+1) AND*/ page.page_title NOT LIKE "%/%" AND page2.page_title IS NULL
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...