---
title: Identifiers
description: An identifier is a string that names an object such as a table, view, schema, or column, in Databricks SQL and Databricks Runtime.
canonical_url: https://docs.databricks.com/aws/en/sql/language-manual/sql-ref-identifiers
---

# Identifiers

**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

An identifier is a string used to identify an object such as a table, view, schema, or column.
Databricks supports non-delimited (regular) identifiers and delimited identifiers, which are enclosed within backticks.

Identifiers are case-insensitive when referenced.

For identifiers persisted with a metastore and data source the characters permitted can be restricted.

See [Names](https://docs.databricks.com/aws/en/sql/language-manual/sql-ref-names.md) for details on the specific usage of identifiers.

## Non delimited identifiers

### Syntax

```
{ letter | digit | '_' } [ ... ]
```

> [!NOTE]
>
> A non-delimited identifier that consists entirely of digits is not valid. At least one letter or underscore must appear.

### Parameters

* **letter**: Any ASCII letter from `A`-`Z` or `a`-`z`.
* **digit**: Any ASCII numeral from `0` to `9`.

> [!NOTE]
>
> In Databricks Runtime, if `spark.sql.ansi.enabled` and `spark.sql.ansi.enforceReservedKeywords` are set to `true`, you cannot use an ANSI SQL reserved keyword as a non-delimited identifier. For details, see [ANSI Compliance](https://docs.databricks.com/aws/en/sql/language-manual/sql-ref-ansi-compliance.md).

## Delimited identifiers

### Syntax

```
`c [ ... ]`
```

### Parameters

* **c**: Any character from the Unicode character set. Use `` ` `` to escape `` ` `` itself.

## Examples

```sql
-- An identifier can start with a digit
> DESCRIBE SELECT 5 AS 1st;
 1st

-- This statement fails because the undelimited identifier uses a non-ASCII letter.
> DESCRIBE SELECT 5 AS Ä;
 INVALID_IDENTIFIER

-- You can delimit the identifier to use a non-ASCII letter
> DESCRIBE SELECT 5 AS `Ä`;
 Ä

-- An identifier with dash needs to be delimited
> DESCRIBE SELECT 5 AS `a-b`;
 a-b

-- An identifier with a space needs to be delimited
> DESCRIBE SELECT 5 AS `a b`;
 a b

-- An identifier with a special character needs to be delimited
> DESCRIBE SELECT 5 AS `a@b`;
 a@b

-- An identifier with a Chinese character needs to be delimited
> DESCRIBE SELECT 5 AS `a中b`;
 a中b

-- An identifier with a backtick needs to be delimited and escaped.
> DESCRIBE SELECT 5 AS `a``b`;
 a`b
```

## Related

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