Check a SQL query for what it actually does before running it
Explains a query in plain language and flags anything destructive or unbounded. Use it before you run something you did not write against a real database.
Read the SQL query below and explain, in plain language, exactly what it will do if run.
State: which tables it reads from and writes to, whether it can modify or delete rows and how many it could plausibly affect, and whether it has a WHERE clause that limits its scope.
If it is a destructive statement (UPDATE, DELETE, DROP, TRUNCATE) without a WHERE clause or with a clause that would match far more rows than a typical intended use, say so explicitly as a warning before anything else.
--- query ---
{{query}}Fill these in
Type your values and Copy gives you the finished prompt, not the template.
Nothing filled in yet - Copy will give you the template with placeholders.
Notes from the author
Run it before you execute anything copied from a chat, a colleague or an old script. The destructive-statement warning is the reason, since a missing WHERE clause looks just like a correct one at a glance.
For information only, not professional advice. You use it at your own risk and we are not liable for any loss or damage. See the disclaimer.
Tagged