Identifiers
Last updated
Was this helpful?
Last updated
Was this helpful?
Snowflake provides an extensive toolkit for working with object and column identifiers. Let's start with the basics: identifiers with and without quotes ()
Even at this stage, we won't achieve full compatibility with the syntax of other databases. However, two nuances deserve special attention:
Identifiers without quotes are converted to uppercase.
Identifiers within backticks behave similarly.
We collected all the varieties of the basic syntax
Here is the result:
In addition to the basic syntax, Snowflake has special functionality:
This syntax is often found in the description of transformations because it helps to use the same source code with different object names.
. A special IDENTIFIER() function to get a reference to an object or column from a session variable or string.
Special function TABLE() to get a reference to an object from a session variable or string.
A special syntax that allows the PUBLIC scheme to be omitted when addressing an object.
We have collected all kinds of special syntax .
Here is the result: