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
SELECT CONCAT("{{u'|", REPLACE(page_title, '_', ' '), "}}") AS sortie FROM page LEFT JOIN `user` ON REPLACE(SUBSTRING_INDEX(page.page_title, '/', 1), '_', ' ') = user.user_name /* Get page name, extract substring till char '/' and replace '_' by ' '. This is user name, use it to LEFT JOIN with 'user' table. */ WHERE page_namespace IN (2,3) /* PU et PddU */ AND page_title LIKE "%/%" /* cibler les sous-pages uniquement */ 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]?)" /* éliminer IPv4 */ AND SUBSTRING_INDEX(page_title, '/', 1) NOT RLIKE "(^([0-9]{1,3}[.]){3}[0-9]{1,3}$|^([[:alnum:]]{1,4}[:]){7})" /* éliminer IPv6 */ AND user_name IS NULL /* sans nom d'utilisateur */ GROUP BY page_title /* éliminer les doublons */ ORDER BY page_title /* trier par ordre alphabetique */
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...