> For the complete documentation index, see [llms.txt](https://astro-rpa.gitbook.io/astro-rpa-user-guide/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://astro-rpa.gitbook.io/astro-rpa-user-guide/g_elements/el_basic/els_db/el_db_exec.md).

# Execute query

![](https://1755238209-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNnEkyZmLMSWTDXxpygbG%2Fuploads%2Fgit-blob-16fe17ef234f0a75f66653bd0d591d691075f801%2Fimage%20\(249\).png?alt=media)

Element that adds a new element to the collection. Waiting for results implies that query should return the data. The component works correctly only inside the Connect to the Database container.

![](https://1755238209-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNnEkyZmLMSWTDXxpygbG%2Fuploads%2Fgit-blob-b7b47a84a64910baadb418c37f349a9afbc7f157%2F1%20\(7\).png?alt=media)

Properties

\- Query text\*: \[String] SQL query text

\- Availability of results: \[Boolean] Sign of waiting for query results

\- Variable: \[List\<List\<string>>] Variable for saving query results
