forked from docs/doc-exports
Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com> Co-authored-by: Lu, Huayi <luhuayi@huawei.com> Co-committed-by: Lu, Huayi <luhuayi@huawei.com>
10 KiB
10 KiB
Constant and Macro
Table 1 lists the constants and macros that can be used in GaussDB(DWS).
Parameter |
Description |
Example SQL Statements |
||
---|---|---|---|---|
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 |
or SELECT now()::DATE; |
||
USER |
Current user, which is the same as the value of CURRENT_USER. |
|
Parent topic: SQL Syntax Reference