SQL

Share SQL code online.

Share SQL queries, migration scripts, or schema definitions: highlighted, encrypted, and instantly shareable without spinning up a gist.

textdrop.sh/xk4mR2
1WITH monthly_revenue AS (2  SELECT3    DATE_TRUNC('month', created_at)  AS month,4    SUM(amount_cents) / 100.0        AS revenue,5    COUNT(DISTINCT customer_id)      AS customers6  FROM orders7  WHERE status = 'completed'8    AND created_at >= NOW() - INTERVAL '12 months'9  GROUP BY 110),11ranked AS (12  SELECT13    month,14    revenue,15    customers,16    revenue - LAG(revenue) OVER (ORDER BY month) AS mom_delta,17    RANK() OVER (ORDER BY revenue DESC)           AS revenue_rank18  FROM monthly_revenue19)20SELECT * FROM ranked21ORDER BY month DESC;
Every paste includes

SQL syntax highlighting

Paste SQL code and get a shareable link with full syntax highlighting, server-side rendered with no JavaScript overhead.

Burn after read

Deleted on first open. Can't be viewed twice.

Password protection

Add a password for end-to-end encryption with no raw key stored.

Configurable expiry

Set pastes to expire after 1 hour, 1 day, 7 days, or up to 30 days. Gone when you say so.

No account needed

No sign-up, no email, no ads. Paste and share in seconds.

How it works
Plain Text
Markdown
Code
DB_HOST=db-01.prod.internal
DB_USER=api_svc
DB_PASS=xK9$mP2!qR7nLw2
REDIS_URL=redis://:abc@cache:6379
delete after setup — expires 1hr
7 days
Share
textdrop.sh/
7 days · plain text
Use cases
  • 01Share complex analytical queries for review
  • 02Send database migration scripts securely
  • 03Distribute schema definitions to new team members
  • 04Share query optimizations with your DBA
  • 05Send one-off reporting queries to stakeholders
FAQ
Which SQL dialects are supported?+

The generic SQL grammar highlights standard SQL, PostgreSQL, MySQL, SQLite, and BigQuery syntax. Dialect-specific keywords are highlighted as best-effort.

Can I share SQL with embedded credentials?+

For embedded credentials, enable password protection and share the password separately. Non-password pastes are encrypted in your browser, but the raw data key is stored server-side for simple sharing and raw access.

Is there a line limit for SQL pastes?+

No line limit: just a 5 MB file size cap, which covers any realistic SQL script.

Other languages
Drop your code