Related posts:
At Snowflake get all SQL session parameters:
Output:select 'CURRENT_ACCOUNT' , CURRENT_ACCOUNT() union all select 'CURRENT_CLIENT' , CURRENT_CLIENT() union all select 'CURRENT_DATABASE' , CURRENT_DATABASE() union all select 'CURRENT_DATE' , to_char(CURRENT_DATE()) union all select 'CURRENT_ROLE' , CURRENT_ROLE() union all select 'CURRENT_SCHEMA' , CURRENT_SCHEMA() union all select 'CURRENT_SCHEMAS' , CURRENT_SCHEMAS() union all select 'CURRENT_SESSION' , CURRENT_SESSION() union all select 'CURRENT_STATEMENT' , CURRENT_STATEMENT() union all select 'CURRENT_TIME' , to_char(CURRENT_TIME()) union all select 'CURRENT_TIMESTAMP' , to_char(CURRENT_TIMESTAMP()) union all select 'CURRENT_TRANSACTION', CURRENT_TRANSACTION() union all select 'CURRENT_USER' , CURRENT_USER() union all select 'CURRENT_VERSION' , CURRENT_VERSION() union all select 'CURRENT_WAREHOUSE' , CURRENT_WAREHOUSE() order by 1;
+---------------------+----------------------------------------------------------------------+
| 'CURRENT_ACCOUNT' | CURRENT_ACCOUNT() |
|---------------------+----------------------------------------------------------------------|
| CURRENT_ACCOUNT | JD12345 |
| CURRENT_CLIENT | SnowSQL 1.1.82 |
| CURRENT_DATABASE | GINGER |
| CURRENT_DATE | 2019-07-25 |
| CURRENT_ROLE | SYSADMIN |
| CURRENT_SCHEMA | PUBLIC |
| CURRENT_SCHEMAS | ["GINGER.PUBLIC"] |
| CURRENT_SESSION | 145071110578262 |
| CURRENT_STATEMENT | select 'CURRENT_ACCOUNT' , CURRENT_ACCOUNT() .... order by 1; |
| CURRENT_TIME | 16:10:44 |
| CURRENT_TIMESTAMP | 2019-07-25 16:10:44.990 -0700 |
| CURRENT_TRANSACTION | NULL |
| CURRENT_USER | JOHNDOUGH |
| CURRENT_VERSION | 3.34.2 |
| CURRENT_WAREHOUSE | WH_X_SMALL |
+---------------------+----------------------------------------------------------------------+
This comment has been removed by the author.
ReplyDelete