Categories:

Context functions (Session)

CURRENT_ACCOUNT_NAME

Returns the name of the current account.

The preferred account identifier for the account consists of this account name along with the organization of the account (orgname-account_name).

Syntax

CURRENT_ACCOUNT_NAME()
Copy

Arguments

None.

Returns

Returns the name of the current account.

The data type of the returned value is VARCHAR.

Example

This shows how to call the CURRENT_ACCOUNT_NAME function:

SELECT CURRENT_ACCOUNT_NAME();
Copy

Output:

+-----------------------------+
| CURRENT_ACCOUNT_NAME()      |
|-----------------------------|
| my_account1                 |
+-----------------------------+
Language: English