# getCurrentCatalog {#getCurrentCatalog}

## Syntax {#Syntax .section}

`getCurrentCatalog()`

## Arguments {#Arguments .section}

None

## Details {#Details .section}

Get the catalog used for the current session.

**Return value**: A STRING scalar.

## Examples {#Examples .section}

``` {#codeblock_pvr_4cb_pbc}
use CATALOG cat1;
select * from db1.table1 
getCurrentCatalog() 
// output: "cat1"
```

**Parent topic:**[Functions](../../Functions/category.md)

