Skip to content

Commit ed604ce

Browse files
soyeric128Chasen-Zhang
authored andcommitted
Create current-catalog.md
1 parent 3378a82 commit ed604ce

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
---
2+
title: CURRENT_CATALOG
3+
---
4+
import FunctionDescription from '@site/src/components/FunctionDescription';
5+
6+
<FunctionDescription description="Introduced or updated: v1.2.668"/>
7+
8+
Returns the name of the catalog currently in use for the session.
9+
10+
## Syntax
11+
12+
```sql
13+
CURRENT_CATALOG()
14+
```
15+
16+
## Examples
17+
18+
```sql
19+
SELECT CURRENT_CATALOG();
20+
21+
┌───────────────────┐
22+
│ current_catalog() │
23+
├───────────────────┤
24+
│ default │
25+
└───────────────────┘
26+
```

0 commit comments

Comments
 (0)