> For the complete documentation index, see [llms.txt](https://zendevx.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://zendevx.gitbook.io/docs/actions-the-power-within/untitled/database/assign-query-result-to.md).

# Assign Query Result to

Use this action to return the result of query which can be either one single value or a row from database.

![](https://2445524190-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M_LKN8sx9rUwRZIqIu7%2F-M_y8ftZYOdT5UQ721Nr%2F-M_yE7F_x2fpGLegNpCC%2F13.00_Database_AssignQueryResultTo.png?alt=media\&token=9a9759df-cdc4-468f-8597-6d2210ca9d55)

Here select the Query whose result should be Assigned to a variable or returned as a row and stored in the Variable selected.
