> For the complete documentation index, see [llms.txt](https://docs.e6data.com/product-documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.e6data.com/product-documentation/sql-command-reference/struct-functions.md).

# Struct Functions

#### <mark style="color:purple;">NAMED\_STRUCT (</mark> (name1, val1) \[, ...] <mark style="color:purple;">)</mark>

Creates a struct with the specified field names and values

```sql
> select named_struct('a','xyz','1',123);
{a:xyz,1:123}
```
