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", DATE_FORMAT(pt_timestamp, '%Y-%m-%d') AS "Date of protection", DATE_FORMAT(pt_expiry, '%Y-%m-%d') AS "Date of expiry", comment_text AS "Reason" FROM protected_titles JOIN comment_protected_titles 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'
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...