> For the complete documentation index, see [llms.txt](https://docs.airops.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.airops.com/docs/de/kontext/memory-stores/add-data/import-from-sql-database.md).

# Aus SQL-Datenbank importieren

## Importieren aus SQL-Datenbank

AirOps ermöglicht es Ihnen, Ihre Wissensdatenbank direkt mit SQL-Datenbanken zu verbinden, sodass Sie strukturierte Daten importieren und semantisch durchsuchbar machen können. Diese leistungsstarke Integration ermöglicht es Ihnen, Ihre vorhandenen Datenbankinformationen ohne manuelle Exporte zu nutzen.

<figure><img src="https://1960680173-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FX2n5yPRPynbnWuO4SH0M%2Fuploads%2Fgit-blob-340922eefe4bb66adad8dc52741e0989eff3ef5a%2FCleanShot%202025-02-23%20at%2017.58.38%402x.png?alt=media" alt=""><figcaption></figcaption></figure>

Um Daten aus einer SQL-Datenbank zu importieren:

* Klicken Sie auf „Daten hinzufügen“ und wählen Sie im Dropdown-Menü „Aus SQL-Datenbank importieren“ aus
* Wählen Sie eine zuvor verbundene Datenbank aus oder verbinden Sie über die Einstellungen eine neue
* Benennen Sie Ihre Abfrage für zukünftige Referenz
* Schreiben Sie Ihre SQL-Abfrage und stellen Sie sicher, dass Sie diese erforderlichen Spalten einschließen:
  * `id`: Eine eindeutige Kennung für jede Zeile
  * `Inhalt`: Die Spalte oder verketteten Spalten, die Sie durchsuchbar machen möchten
* Klicken Sie vor dem Importieren auf „Verbindung testen“, um Ihre Abfrage zu überprüfen
* Sobald sie verifiziert ist, importieren Sie Ihre Daten, um sie Ihrer Wissensdatenbank hinzuzufügen

Beim Schreiben Ihrer Abfrage können Sie SQL-Funktionen wie `CONCAT` verwenden, um mehrere Spalten zu einem einzigen durchsuchbaren Inhaltsfeld zu kombinieren und so einen reichhaltigeren Kontext für Ihre Wissensdatenbank zu schaffen.

<figure><img src="https://1960680173-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FX2n5yPRPynbnWuO4SH0M%2Fuploads%2Fgit-blob-ed80fa93822a2c52f05e98a2311cdb4bb4adadce%2FCleanShot%202025-02-27%20at%2005.29.59%402x.png?alt=media" alt=""><figcaption></figcaption></figure>


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.airops.com/docs/de/kontext/memory-stores/add-data/import-from-sql-database.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
