Constant and Macro
Table 1 lists the constants and macros that can be used in 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. |
|
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.