---
title: current_schema function
description: Learn the syntax of the current\_schema function of the SQL language in Databricks SQL and Databricks Runtime.
canonical_url: https://docs.databricks.com/aws/en/sql/language-manual/functions/current_schema
---

# `current_schema` function

**Applies to:** ![check marked yes](https://docs.databricks.com/aws/en/images/icons/check.png) Databricks SQL ![check marked yes](https://docs.databricks.com/aws/en/images/icons/check.png) Databricks Runtime 12.2 LTS and above

Returns the current schema.

## Syntax

```
current_schema()
```

## Arguments

This function takes no arguments.

## Returns

A STRING.

## Examples

```sql
> SELECT current_schema();
 default
```

## Related functions

* [`current_catalog` function](https://docs.databricks.com/aws/en/sql/language-manual/functions/current_catalog.md)
