- Keywords: Words with specific meaning in SQL like
CREATE,INDEX, andBOOL - Identifiers: Names for things like databases and some functions
Keywords
Keywords make up SQL’s vocabulary and can have specific meaning in statements. Each SQL keyword that CockroachDB supports is on one of four lists:Keyword uses
Most users asking about keywords want to know more about them in terms of:- Names of objects, covered on this page in Identifiers
- Syntax, covered in our pages and
Identifiers
Identifiers are most commonly used as names of objects like databases, tables, or columns — because of this, the terms “name” and “identifier” are often used interchangeably. However, identifiers also have less-common uses, such as changing column labels withSELECT.
Rules for Identifiers
In our , all values that accept anidentifier must:
- Begin with a Unicode letter or an underscore (_). Subsequent characters can be letters, underscores, digits (0-9), or dollar signs ($).
- Not equal any SQL keyword unless the keyword is accepted by the element’s syntax. For example, accepts Unreserved or Column Name keywords.
Some statements have additional requirements for identifiers. For example, each table in a database must have a unique name. These requirements are documented on each statement’s page.

