CursorBot logoCursorBot

SQL help with the schema in the prompt

CursorBot can explain a query, point at a join that multiplies rows, or draft SQL from tables you describe. It does not connect to your database.

Paste the shape of the data

Include table names and the columns that matter. A query written against imagined columns will not run.

Say which database you use when dialect matters. Postgres and MySQL do not agree on every function.

Example prompt

This report query returns duplicate orders. Explain the join and rewrite it so each order appears once.

Questions

Will it run the query?

No. You run it in your own database with the permissions you already have.

Start with CursorBot