Constants and Macros
Table 1 lists the constants and macros that can be used in GaussDB.
Parameter |
Description |
Example |
||
---|---|---|---|---|
CURRENT_CATALOG |
Specifies the current database. |
|
||
CURRENT_ROLE |
Specifies the current user. |
|
||
CURRENT_SCHEMA |
Specifies the current database mode. |
|
||
CURRENT_USER |
Specifies the current user. |
|
||
LOCALTIMESTAMP |
Specifies the current session time (without time zone). |
|
||
NULL |
This parameter is left blank. |
N/A |
||
SESSION_USER |
Specifies the current system user. |
|
||
SYSDATE |
Specifies the current system date. |
|
||
USER |
Specifies the current user, also called CURRENT_USER. |
|
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.