Paste markdown that includes SQL, and you can read it rendered with the queries highlighted; Share then gives you a link so someone else can review the same page.
SQL is often shared for review rather than for execution. An analyst sends the query behind a dashboard number so a stakeholder can see which rows were filtered out. A backend engineer writes a migration note that lists each ALTER TABLE, the expected lock, and the rollback. A data team keeps a page explaining how a metric is defined, with the canonical query underneath. People reading these documents may not have database access at all, so the text and the query need to stand on their own.
Rendered, the prose gets headings, and the SQL shows keywords, functions, strings and comments in different colors, which makes joins and WHERE clauses easier to check line by line. Markdown tables are a natural fit for sample results or for a before-and-after of a schema change, and task lists work for a migration checklist.
No query runs and no database is contacted; the viewer is only a reading surface. The person receiving the read-only link does not create an account, and the document deletes itself 15 days after creation, so a one-time review does not leave a copy of your query sitting somewhere indefinitely. Avoid pasting real customer data into examples, because anyone holding the link can read it.
How to view SQL in markdown
- Paste your markdown into the editor above, or edit the example.
- Wrap SQL code in a fenced block that starts with ```sql.
- The preview shows the rendered document with the code highlighted (side by side on desktop; switch to Preview on a phone).
- Select Share to get a read-only link that anyone can open without an account.
Frequently asked questions
Is there a separate tag for PostgreSQL or MySQL?
Use ```sql for every dialect. Dialect-specific tags such as ```postgresql or ```mysql are not registered, so blocks with them are shown as plain monospaced text.
Does the viewer connect to a database?
No. Queries are displayed and highlighted, never executed. There is no connection to any database from the page.
Can I show query results as a table?
Yes. Markdown tables are supported, so you can paste sample results under the query as a table with a header row.