forked from docs/doc-exports
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com> Co-authored-by: Lu, Huayi <luhuayi@huawei.com> Co-committed-by: Lu, Huayi <luhuayi@huawei.com>
14 KiB
14 KiB
Constant and Macro
Table 1 lists the constants and macros that can be used in GaussDB(DWS).
Parameter |
Description |
Examples |
||
---|---|---|---|---|
CURRENT_CATALOG |
Specifies the current database. |
|
||
CURRENT_ROLE |
Current role |
|
||
CURRENT_SCHEMA |
Current database model |
|
||
CURRENT_USER |
Current user |
|
||
LOCALTIMESTAMP |
Current session time (without time zone) |
|
||
NULL |
This parameter is left blank. |
- |
||
SESSION_USER |
Current system user |
|
||
SYSDATE |
Current system date |
|
||
USER |
Current user, also called CURRENT_USER |
|
Parent topic: SQL Syntax Reference