---
title: sql_keywords function
description: Learn the syntax of the sql\_keywords function of the SQL language in Databricks SQL and Databricks Runtime.
canonical_url: https://docs.databricks.com/aws/en/sql/language-manual/functions/sql_keywords
---

# `sql_keywords` function

**Applies to:** ![check marked yes](https://docs.databricks.com/aws/en/images/icons/check.png) Databricks SQL ![check marked yes](https://docs.databricks.com/aws/en/images/icons/check.png) Databricks Runtime 13.3 LTS and above

Returns the set of SQL keywords in Databricks.

## Syntax

```
sql_keywords()
```

## Arguments

This function takes no arguments.

## Returns

A set of rows composed of two columns:

* **`keyword STRING NOT NULL`**: The name of the SQL keyword
* **`reserved BOOLEAN NOT NULL`**: `true` if the keyword is reserved.

Keywords in Databricks are only reserved under certain conditions.
See [ANSI compliance in Databricks Runtime](https://docs.databricks.com/aws/en/sql/language-manual/sql-ref-ansi-compliance.md) for more details.

## Examples

```sql
> SELECT keyword, reserved FROM sql_keywords() ORDER BY keyword LIMIT 2;
 ACTION false
 ADD    false
```

## Related

* [ANSI compliance in Databricks Runtime](https://docs.databricks.com/aws/en/sql/language-manual/sql-ref-ansi-compliance.md)
