I am searching for official documentation of TABLE command(it is not the same as TABLE(<string_literal>)).
Snowflake supports TABLE <table_name>
, which is a shorthand for SELECT * FROM <table_name>
, but I am unable to locate its documentation. Example:
CREATE OR REPLACE TEMPORARY TABLE t AS SELECT 1 AS col;
SELECT * FROM t;
-- COL 1
TABLE t;
-- COL 1
It works with parametrized table name as well:
SET name = 't';
TABLE IDENTIFIER($name);
-- COL 1
TABLE TABLE($name);
-- error as TABLE() could be only used in FROM
I searched at All Commands/Query Syntax without much success.