# Database query

Runs a parameterized SQL query using a saved DSN credential.

## Configuration

Use read-only SELECT queries where possible. Mutating queries are idempotency-protected on retry.

## Runtime output

The node writes its main result to `last_output` and, when structured, to `last_output_parsed`. Downstream nodes can reference named outputs through `{outputs.<node_id>.parsed}`.

## Example workflow

Use the workflow card below to create a working example in the editor. It uses safe sample data and avoids external side effects unless the node itself is an outbound integration.

---

*Source: https://agentbuilder.systalink.sn/docs/node-database-query — human documentation.*
*Other language: [/docs-md/fr/node-database-query.md](/docs-md/fr/node-database-query.md).*
*Machine-readable index: [/llms.txt](/llms.txt).*
