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
Huji
.
Toggle Highlighting
SQL
use fawiki_p; /*select * from logging where log_user = 678291; select * from logging where log_user_text = 'Huji' and log_timestamp > '201709210010000' and log_timestamp < '20170921020000' and log_title = 'صفحه_تمرین'*/ SELECT log_id, user_name, CONCAT('{{ns:' , log_namespace, '}}', log_title) AS link, log_comment, STR_TO_DATE(LEFT(log_timestamp, 8), '%Y%m%d'), 'احیای نسخهٔ حذفشده' AS issue FROM logging JOIN user_groups ON log_user = ug_user JOIN user ON user_id = log_user WHERE ug_group = 'eliminator' AND log_params LIKE '%nfield";i:0%' AND log_type='delete' AND log_action='revision' AND log_timestamp >= DATE_FORMAT(DATE_SUB(NOW(), interval 30 day), '%Y%m%d000000')
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...