Categories:

Context Functions (Session)

CURRENT_ACCOUNT

Returns the account of the user currently logged into the system.

Syntax

CURRENT_ACCOUNT()

Arguments

None.

Returns

The data type of the returned value is VARCHAR.

Examples

This shows how to call the CURRENT_ACCOUNT function:

SELECT CURRENT_ACCOUNT();

Output:

+-------------------+
| CURRENT_ACCOUNT() |
|-------------------|
| XY12345           |
+-------------------+