This is a SQL command reference for users on clusters running Databricks Runtime 7.x and above in the Databricks Data Science & Engineering workspace and Databricks Machine Learning environment.
For the Databricks SQL language reference, see SQL reference for Databricks SQL.
This general reference describes data types, functions, identifiers, literals, and semantics:
- How to read a syntax diagram
- Data types and literals
- SQL data type rules
- Datetime patterns
- Built-in functions
- Lambda functions
- Window functions
- Null semantics
- JSON path expressions
- ANSI compliance
- Apache Hive compatibility
- Privileges and securable objects
- Reserved words
You use data definition statements to create or modify the structure of database objects in a database:
You use data manipulation statements to add, change, or delete data:
You use a query to retrieve rows from one or more tables according to the specified clauses. The full syntax
and brief description of supported clauses are explained in the Query article.
The related SQL statements
VALUES are also included in this section.
Databricks Runtime also provides the ability to generate the logical and physical plan for a query using the
You use Delta Lake SQL statements to manage tables stored in Delta Lake format:
For details on using Delta Lake statements, see What is Delta Lake?.
You use auxiliary statements to collect statistics, manage caching for Apache Spark cache, explore metadata, set configurations, and manage resources: