Jump to content

User:SQL/QBRequest

From Wikipedia, the free encyclopedia

This template is used to request QueryBot runs. QueryBot will dump the result of your query on a subpage in your userspace, in wikitable format, at an interval that you specify.

Parameters (bold is required):

  • user - The requesting user
  • query - The query you'd like run. It is recommended that you use the SQL Optimizer at toollabs.
  • desc - A description of what the query does
  • approval - The signature from an approving tool admin
  • adiff - The oldid where the approving tool admin signed off
  • freq - How frequently you'd like the query to be run (hourly, daily, weekly, monthly). Hourly queries must complete in under 60 seconds. Daily must complete in under 45 mins. Weekly must complete in under 2 hours, and monthly must complete in under 8 hours.
  • target - A subpage, in your userspace, where you would like the report to go.

Example usage:

{{User:SQL/QBRequest|user=SQL|query=SELECT * FROM user WHERE user_name = "SQL";|desc=Query the thing!|frequency=hourly|target=User:SQL/TestQB}}

Outputs: