Best use
Share one scoped SQL artifact: Query reviews.
Queries, schemas, and query plans. Pastebin.ai preserves the submitted source, adds a line-numbered reading view, and lets you choose retention and access before sharing.
Check the source, runtime context, and privacy risks that matter when you share SQL text.
Share one scoped SQL artifact: Query reviews.
Name the source: Common inputs include .sql, DDL fragments, fixtures, and execution plans. State the tool or runtime that reads them.
Review before upload: Inspect each SQL value, comment, path, and identifier; the checklist below names the format-specific risks.
Common inputs include .sql, DDL fragments, fixtures, and execution plans. Limit the artifact to the lines and context a recipient needs to understand its purpose.
Keep the SQL example limited to this review goal and its required inputs.
For SQL review, Name the producing tool or runtime, preserve exact source text, and include only the context another person needs to understand the artifact.
Use representative placeholders so this SQL example preserves structure without exposing live values.
The SQL sample below uses a small, representative form of .sql, DDL fragments, fixtures, and execution plans. Replace live values with clear placeholders while keeping the structure another reader needs.
SELECT status, COUNT(*) AS total
FROM example_jobs
WHERE created_at >= CURRENT_DATE
GROUP BY status
ORDER BY total DESC;
Name the database engine and version, relevant schema, representative row counts, expected result, and observed behavior. Dialects differ in quoting, functions, types, and planner output.
Replace production rows with synthetic fixtures and review connection strings, table names, tenant identifiers, emails, explain-plan infrastructure details, and comments.
Next SQL step: Share SQL queries adds this context: Add dialect, schema, fixtures, and expected behavior for review.
Short answers about SQL formatting, runtime context, and safer sharing.
The display mode is general SQL, so state PostgreSQL, MySQL, SQLite, SQL Server, or another engine and its version in the paste context.
No. Use synthetic rows that preserve relevant types, nulls, cardinality, and boundary cases.