# Functions

## What is a Function?

A function is SQL code that can be accessed using the SQL expression syntax, e.g. `SELECT my_func(100)`. You can pass values into functions, and they can return results.

There are also many, many built-in functions you can use in the same way.

Database users create functions. Functions are schema and are stored along with other schema\
elements in the database.

## Doltgres support for Functions

User created functions are supported with some limitations, and will be expanded in a future\
release.


---

# Agent Instructions: 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.doltgres.com/concepts/sql/functions.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.
