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
Epok
.
Liste les pages utilisateurs d'IP en redirection. Quelques faux positifs d'utilisateurs inexistants dont le nom matche le pattern. Testé et validé le 5/10/2019
Toggle Highlighting
SQL
USE frwiki_p; SELECT CONCAT("{{a-redir-simple|Wikipédia:", page_title, "}}") AS sortie FROM page LEFT JOIN `user` /* Get page name, extract substring till char '/' and replace '_' by ' '. This is user name, use it to LEFT JOIN with 'user' table. */ ON REPLACE(SUBSTRING_INDEX(page.page_title, '/', 1), '_', ' ') = user.user_name WHERE page_namespace IN (2,3) AND SUBSTRING_INDEX(page_title, '/', 1) RLIKE "(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)" AND page_is_redirect = 1 GROUP BY page_title /* éliminer les doublons */ ORDER BY page_title /* trier par ordre alhabetique */
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...