Toggle navigation
Home
New Query
Recent Queries
Discuss
Database tables
Database names
MediaWiki
Wikibase
Replicas browser and optimizer
Login
History
Fork
Fork of
Pages utilisateur non liées à un utilisateur sur WP:FR
by
Epok
This query is marked as a draft
This query has been published
by
Epok
.
Lister les sous-pages utilisateur (Utilisateur:***/*** et Discussion utilisateur:***/***) (hors IP) ne correspondant pas à un utilisateur enregistré. Testé et validé le 22/07/2019.
Toggle Highlighting
SQL
USE frwiki_p; SELECT CONCAT("{{u'|", REPLACE(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) NOT 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_title LIKE "%/%" AND user_name IS NULL 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...