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
Panamitsu
.
Toggle Highlighting
SQL
SELECT pl.pl_from, redir_pl.pl_from IS NOT NULL AS is_redirect, IFNULL(redir_p.page_id, p.page_id) AS pl_to FROM pagelinks AS pl LEFT JOIN page AS p ON (pl.pl_title = p.page_title AND pl.pl_namespace = p.page_namespace) LEFT JOIN pagelinks AS redir_pl ON p.page_is_redirect AND p.page_id = redir_pl.pl_from LEFT JOIN page AS redir_p ON (redir_pl.pl_title = redir_p.page_title AND redir_pl.pl_namespace = redir_p.page_namespace) WHERE p.page_id=63438227;
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...