---
title: Pipeline SQL language reference
description: "Reference for the Lakeflow pipelines SQL interface: AUTO CDC INTO, CREATE FLOW, and CREATE statements for materialized views, streaming tables, and views."
canonical_url: https://docs.databricks.com/aws/en/ldp/developer/sql-ref
---

# Pipeline SQL language reference

The Lakeflow pipelines SQL programming interface defines pipelines with `CREATE` statements, `CREATE FLOW`, and `AUTO CDC INTO`.

* For conceptual information and an overview of using Lakeflow pipelines SQL, see [Develop Lakeflow pipelines code with SQL](https://docs.databricks.com/aws/en/ldp/developer/sql-dev.md).
* For information on the Python API, see the [Lakeflow pipelines Python language reference](https://docs.databricks.com/aws/en/ldp/developer/python-ref.md).
* For more information about SQL in Databricks, see [SQL language reference](https://docs.databricks.com/aws/en/sql/language-manual/index.md).

You can use Python user-defined functions (UDFs) in your SQL queries, but you must define these UDFs in Python files before calling them in SQL source files. See [Python scalar user-defined functions (UDFs)](https://docs.databricks.com/aws/en/udf/python.md).

## SQL statements

Use these statements to work with pipelines in SQL.

* [AUTO CDC INTO](https://docs.databricks.com/aws/en/ldp/developer/ldp-sql-ref-apply-changes-into.md)
* [CREATE FLOW](https://docs.databricks.com/aws/en/ldp/developer/ldp-sql-ref-create-flow.md)
* [CREATE MATERIALIZED VIEW](https://docs.databricks.com/aws/en/ldp/developer/ldp-sql-ref-create-materialized-view.md)
* [CREATE STREAMING TABLE](https://docs.databricks.com/aws/en/ldp/developer/ldp-sql-ref-create-streaming-table.md)
* [CREATE TABLE ... FLOW](https://docs.databricks.com/aws/en/ldp/developer/ldp-sql-ref-create-table-flow.md)
* [CREATE TEMPORARY VIEW](https://docs.databricks.com/aws/en/ldp/developer/ldp-sql-ref-create-temporary-view.md)
* [CREATE VIEW](https://docs.databricks.com/aws/en/ldp/developer/ldp-sql-ref-create-view.md)

You can also use the following statements to work with pipelines, but they must be run from Databricks SQL, not from within a pipeline. See [Get started with data warehousing using Databricks SQL](https://docs.databricks.com/aws/en/sql/get-started/index.md), and [Use `ALTER` statements with pipeline datasets](https://docs.databricks.com/aws/en/ldp/using-alter-sql.md).

* [ALTER STREAMING TABLE](https://docs.databricks.com/aws/en/sql/language-manual/sql-ref-syntax-ddl-alter-streaming-table.md)
* [ALTER MATERIALIZED VIEW](https://docs.databricks.com/aws/en/sql/language-manual/sql-ref-syntax-ddl-alter-materialized-view.md)
* [EXPLAIN CREATE MATERIALIZED VIEW](https://docs.databricks.com/aws/en/sql/language-manual/sql-ref-syntax-qry-explain-materialized-view.md)
