SQL reference for Databricks Runtime 7.x

This is a SQL command reference for users on Databricks Runtime 7.x clusters running in Databricks Workspace.


General reference

This general reference for Databricks SQL describes data types, functions, identifiers, literals, and semantics:

DDL statements

You use data definition statements to create or modify the structure of database objects in a database:

DML statements

You use data manipulation statements to add, change, or delete data:

Data retrieval statements

You use the SELECT statement 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 SELECT. The SQL statements related to SELECT are also included in this section.

Spark also provides the ability to generate logical and physical plan for a query using the EXPLAIN statement.

Security statements

You use security SQL statements to manage access to data:

For details using these statements, see Data object privileges.