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
Aram
.
Toggle Highlighting
SQL
-- Sample Quarry Query to Extract Usernames SELECT DISTINCT page_title AS username FROM page JOIN revision ON revision.rev_id = page.page_latest WHERE page_namespace = 2 -- Namespace for User pages AND page_title REGEXP '\\[\\[User:([^|]+)\\|[^\\]]+\\]\\]' -- Regular expression to extract usernames AND page_title NOT LIKE '%/%' -- Exclude subpages AND page_title NOT LIKE '%:%' -- Exclude usernames with colons (interwiki links, etc.)
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...