> ## Documentation Index
> Fetch the complete documentation index at: https://axiom.co/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# SQL functions

> Learn how to use SQL functions in APL.

Use SQL functions to parse and reconstruct SQL statements stored as strings in your datasets. They're useful in database monitoring, audit log analysis, and SQL validation pipelines.

## List of functions

| Function                                                      | Description                                                                        |
| ------------------------------------------------------------- | ---------------------------------------------------------------------------------- |
| [parse\_sql](/apl/scalar-functions/sql-functions/parse-sql)   | Parses a SQL statement string into a structured dictionary of its components.      |
| [format\_sql](/apl/scalar-functions/sql-functions/format-sql) | Converts the structured dictionary produced by `parse_sql` back into a SQL string. |
