> For the complete documentation index, see [llms.txt](https://docs.buildings.ability.abb/collection/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.buildings.ability.abb/collection/german/plattform/alarms-rules-and-escalations/rule-chains/knoten/sql-abfrage.md).

# SQL-Abfrage

## ![](/files/3bc81c20b25678ff59e7c54e565ce9838c9c59af)

Verwenden Sie **SQL-Abfrage** um eine SQL-Abfrage innerhalb einer Regelkette auszuführen.

Dieser Knoten gibt Abfrageergebnisse für nachgelagerte Knoten zurück.

<div align="left"><figure><img src="/files/73f2e34fee4d3d67dfd2d4338a4e452f343e43b6" alt="" width="337"><figcaption></figcaption></figure></div>

### Was er tut

Der Knoten führt die konfigurierte SQL-Anweisung aus, wenn er ausgelöst wird.

Verwenden Sie ihn, um Daten für die spätere Verarbeitung abzurufen.

### Eingaben und Ausgaben

**Eingabe**

* **Auslöser** — Startet die Abfrage.

**Ausgabe**

* **Daten** — Gibt das Abfrageergebnis zurück.

### Konfigurierbare Einstellungen

<div align="left"><figure><img src="/files/517fb596529c4e1adc0b9c54bf80de679b91fa6a" alt="" width="375"><figcaption></figcaption></figure></div>

* **SQL-Abfrage** — Geben Sie die auszuführende SQL-Anweisung ein.

### Typische Verwendung

Verwenden Sie **SQL-Abfrage** vor **LLM-Aufruf** oder anderen Verarbeitungsknoten.

### Zugehörige Dokumentation

* [Script Engine](/collection/german/plattform/platform-core/script-engine.md)
* [PL/PgSQL-Skripte schreiben](/collection/german/plattform/platform-core/script-engine/writing-pl-pgsql-scripts.md)
* [Knoten](/collection/german/plattform/alarms-rules-and-escalations/rule-chains/knoten.md)

Für den vollständigen Editor-Ablauf siehe [Regelkette konfigurieren](/collection/german/plattform/alarms-rules-and-escalations/rule-chains/configure-rule-chain.md).


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.buildings.ability.abb/collection/german/plattform/alarms-rules-and-escalations/rule-chains/knoten/sql-abfrage.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
