Toggle navigation
Home
New Query
Recent Queries
Discuss
Database tables
Database names
MediaWiki
Wikibase
Replicas browser and optimizer
Login
History
Fork
Fork of
Long expiry (>2022) sysop creation protection
by
Anarchyte
This query is marked as a draft
This query has been published
by
SD0001
.
Toggle Highlighting
SQL
SELECT ROW_NUMBER() OVER(ORDER BY (SELECT 1)) AS "No.", pt_title AS 'Page', user_name AS "Protecting admin", pt_timestamp AS "Date of protection", pt_expiry AS "Date of expiry", comment_text AS "Summary" FROM protected_titles JOIN comment ON comment_id = pt_reason_id JOIN user on user_id = pt_user WHERE pt_expiry >= DATE_FORMAT(NOW() + INTERVAL 1 YEAR, '%Y%m%d%H%i%S') AND pt_expiry != 'infinity' AND pt_create_perm = 'sysop' AND pt_namespace = 0;
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...