DB: SQL Query (custom SELECT)

db_sql_query · action · Database · Available · v1.0.0

Description

Run a custom SELECT (with JOIN, GROUP BY, CTE) and return rows. Read-only — use db_insert/db_update for mutations.

⚙️ Configuration parameters

Fields shown in the editor when configuring the node. Generated directly from the NodeDefconfigFields.

FieldTypeRequiredDefaultDescription
databaseId
Database
db-pickeryes
sql
SQL (solo SELECT)
codeyes
SELECT o.order_number, ol.product_description FROM orders o JOIN order_lines ol ON ol.order_id = o.id WHERE o.order_date >= date('now','-90 days') ORDER BY o.order_date DESC
Statement SELECT (anche con CTE/JOIN/GROUP BY). Supporta {{espressioni}} per parametri dinamici. Limite riga applicato automaticamente.
rowLimit
Limite righe
numberno5000Cap di sicurezza per evitare di scaricare milioni di righe. Default 5000.

💡 Configuration example

JSON snippet of the node as it appears in the workflow. Values are derived fromdefaultValue and from required parameters.

{
  "id": "node-db_sql_query-1",
  "defId": "db_sql_query",
  "label": "DB: SQL Query (custom SELECT)",
  "config": {
    "databaseId": "<databaseId>",
    "sql": "SELECT o.order_number, ol.product_description FROM orders o JOIN order_lines ol ON ol.order_id = o.id WHERE o.order_date >= date('now','-90 days') ORDER BY o.order_date DESC",
    "rowLimit": 5000
  }
}

🔗 Related nodes in the same category

Ready to use DB: SQL Query (custom SELECT)?

Available now on all FlowForge plans. Try it free without a credit card.

Start freeBrowse all nodes