id stringlengths 16 145 | text stringlengths 1 179k | title stringclasses 1
value |
|---|---|---|
snowflake_docs/parameters_96_0.txt | TIMESTAMP_OUTPUT_FORMAT ¶
Type :
Session — Can be set for Account » User » Session
Data Type :
String
Description :
Specifies the display format for the TIMESTAMP data type alias. For more
output) .
Values :
Any valid, supported timestamp format
Default :
` YYYY-MM-DD HH24:MI:SS.FF3 TZHTZM `
| |
snowflake_docs/cast_5_0.txt | label-structured-types-casting-struct-struct-object-key-
names) .
` ADD FIELDS `
want to add key-value pairs to the OBJECT.
structured.html | |
snowflake_docs/drop-authentication-policy_3_0.txt | Parameters ¶
` _ name _ `
Specifies the identifier for the authentication policy to drop. If the
identifier contains spaces or special characters, you must enclose the string
in double quotation marks. Identifiers enclosed in double quotation marks are
case-sensitive. The identifier must meet the [ identifier requi... | |
snowflake_docs/undrop-iceberg-table_5_0.txt | Examples ¶
Restore the most recent version of a dropped table ` my_iceberg_table ` :
UNDROP ICEBERG TABLE my_iceberg_table;
Copy
Was this page helpful?
Yes No
Inc. All Rights Reserved .
On this page
1. Syntax
2. Parameters
3. Usage notes
4. Examples
Related content
Language : **English** | |
snowflake_docs/st_buffer_5_0.txt | Usage Notes ¶
* ST_BUFFER uses eight segments to approximate a quarter circle.
* If ` _ distance _ ` is a negative value, the returned object will be smaller than the input object. You can use this to remove small irregularities from the shape.
* For LineStrings, the endcap and join styles are always round.... | |
snowflake_docs/show-iceberg-tables_12_0.txt | Identifying Iceberg tables with SHOW TABLES ¶
whether a table is an Iceberg table. This column appears in addition to the
output) .
The column has the following name and possible values:
Column name
|
Values
---|---
is_iceberg
|
` Y ` if the table is an Iceberg table; ` N ` otherwise.
Was this page helpful?
... | |
snowflake_docs/try_to_geography_5_0.txt | Usage Notes ¶
* Returns NULL if the input cannot be parsed as the appropriate supported format (WKT, WKB, EWKT, EWKB, GeoJSON).
* For the coordinates in WKT, EWKT, and GeoJSON, longitude appears before latitude (e.g. ` POINT( _ lon _ _ lat _ ) ` ).
| |
snowflake_docs/st_aswkb_0_0.txt | /
1. Conversion, Input, Parsing
14. Conversion, Output, Formatting
23. Constructor
32. Accessor
44. Relationship and Measurement
61. Transformation
75. Utility
77. H3
geospatial) ST_ASWKB
Categories:
| |
snowflake_docs/alter-model-modify-version_3_0.txt | Parameters ¶
` _ name _ `
Specifies the identifier of the model.
If the identifier contains spaces or special characters, the entire string
must be enclosed in double quotes. Identifiers enclosed in double quotes are
also case-sensitive.
.
` _ version_name _ `
Specifies the identifier of the version, which must be... | |
snowflake_docs/functions-conversion_4_0.txt | Numeric Formats in Conversion Functions ¶
specifies the format of the input string, if the input expression evaluates to
a string. For more information about the values this parameter can have, see [
| |
snowflake_docs/show-versions_3_0.txt | Parameters ¶
` LIKE ' _ pattern _ ' `
Optionally filters the command output by object name. The filter uses case-
insensitive pattern matching, with support for SQL wildcard characters ( ` %
` and ` _ ` ).
For example, the following patterns return the same results:
` ... LIKE '%testing%' ... `
` ... L... | |
snowflake_docs/st_npoints_1_0.txt | ST_NPOINTS , ST_NUMPOINTS ¶
geospatial.html | |
snowflake_docs/create-hybrid-table_0_0.txt | /
2. Table
13. Dynamic Table
19. Event Table
24. External Table
30. Hybrid Table
36. Iceberg Table
43. View
49. Materialized View
56. Sequence
CREATE HYBRID TABLE
| |
snowflake_docs/alter-warehouse_5_0.txt | label-mcw-scaling-policies) .
>
> ` AUTO_SUSPEND = { _ num _ | NULL } `
>
>
> Specifies the number of seconds of inactivity after which a warehouse is
> automatically suspended.
>
> Valid values :
>
>
> Any integer ` 0 ` or greater, or ` NULL ` :
>
> * Setting a value less than ` 60 ` is allowed, but m... | |
snowflake_docs/create-procedure_4_0.txt | label-stored-procedure-
java-return-table) is a preview feature that is available to all accounts.
For in-line stored procedures, use the following syntax:
CREATE [ OR REPLACE ] [ SECURE ] PROCEDURE <name> (
[ <arg_name> <arg_data_type> [ DEFAULT <defaut_value> ] ] [ , ... ] )
[ COPY GRANTS ]
RE... | |
snowflake_docs/as_2_0.txt | General Usage Notes ¶
* If the type of value in the VARIANT argument does not match the output value, then NULL is returned. For example, if AS_DATE() is passed a VARIANT value that doesn’t contain a ` DATE ` , then NULL is returned.
* If the input is NULL, the output is NULL.
| |
snowflake_docs/functions-analytic_23_1.txt | MAX(s) OVER (PARTITION BY p ORDER BY o ROWS BETWEEN 1 FOLLOWING AND 3 FOLLOWING) max_s_1F_3F,
MAX(s) OVER (PARTITION BY p ORDER BY o ROWS BETWEEN 1 PRECEDING AND 3 FOLLOWING) max_s_1P_3F
FROM example_sliding
ORDER BY p, o;
+-----+----+-------+-------------+-------------+-------------+-------... | |
snowflake_docs/as_double-real_4_0.txt | Examples ¶
Here is a valid (although inefficient) way to calculate the area of a circle
with radius 2 by using the AS_DOUBLE() function:
> Create and fill a table:
>
>>
>> CREATE TABLE demo (radius DOUBLE, v_radius VARIANT);
>> INSERT INTO demo (radius) VALUES (2.0);
>> UPDATE demo SET v_radius = TO_VARI... | |
snowflake_docs/system_link_account_objects_by_name_3_0.txt | Syntax ¶
SYSTEM$LINK_ACCOUNT_OBJECTS_BY_NAME('<group_name>')
Copy
| |
snowflake_docs/alter-network-rule_6_0.txt | label-security-custom-role) .
For general information about roles and privilege grants for performing SQL
overview.html | |
snowflake_docs/alter-notification-integration_4_0.txt | label-email-notification-verify-address) .
The maximum number of email addresses that you can specify is 50.
If you omit this parameter, you can send email notifications to any verified
email address in the current account.
` COMMENT = ' _ string_literal _ ' `
String (literal) that specifies a comment for the inte... | |
snowflake_docs/commands-data-loading_0_0.txt | /
1. Stage
7. File Format
13. External Volume
20. Pipe
26. Snowpipe Streaming
28. Loading and Unloading
commands) Data Loading & Unloading
| |
snowflake_docs/getvariable_3_0.txt | Arguments ¶
` _ name _ `
The name of the SQL variable.
You must specify the name in uppercase letters, even if you used lowercase
letters when defining the variable.
| |
snowflake_docs/bitnot_0_0.txt | /
reference/expressions-byte-bit) BITNOT
Categories:
| |
snowflake_docs/desc-view_4_0.txt | Usage Notes ¶
If a masking policy is not set on the column or if the Snowflake account is
not Enterprise Edition or higher, Snowflake returns ` NULL ` .
| |
snowflake_docs/desc-packages-policy_5_0.txt | label-access-control-overview-privileges) at a minimum:
Privilege
|
Object
|
Notes
---|---|---
OWNERSHIP
|
Packages policy
|
OWNERSHIP is a special privilege on an object that is automatically granted to
the role that created the object, but can also be transferred using the [
role (or any role with the MANAGE GRAN... | |
snowflake_docs/desc-password-policy_10_0.txt | Example ¶
DESC PASSWORD POLICY password_policy_prod_1;
Copy
+-----------------------------------+----------------------------------------+-------------+-----------------------------------------------------------------------------------------------------------------------------------------------+
| prop... | |
snowflake_docs/show-columns_3_0.txt | Parameters ¶
` LIKE '<pattern>' `
Filters the command output by object name. The filter uses case-insensitive
pattern matching, with support for SQL wildcard characters ( ` % ` and ` _ `
).
For example, the following patterns return the same results:
` ... LIKE '%testing%' ... `
` ... LIKE '%TESTING%' ..... | |
snowflake_docs/extract_answer-snowflake-cortex_6_0.txt | Access Control ¶
Users must use a role that has been granted the [ SNOWFLAKE.CORTEX_USER
functions.html | |
snowflake_docs/alter-compute-pool_5_0.txt | label-access-control-overview-privileges) at a minimum:
Privilege
|
Object
|
Notes
---|---|---
OPERATE
|
Compute pool
|
To suspend or resume a compute pool, the role requires these permissions.
MODIFY
|
Compute pool
|
To alter the compute pool and set properties, the role requires this
permission.
For instructi... | |
snowflake_docs/rlike_8_0.txt | First Syntax ¶
The following examples perform case-insensitive pattern matching with
wildcards:
>
> SELECT * FROM rlike_ex WHERE RLIKE(city, 'san.*', 'i');
>
>
> Copy
>
>
> +---------------+
> | CITY |
> |---------------|
> | San Francisco |
> | San Jose |
> +---------... | |
snowflake_docs/array_append_3_0.txt | Arguments ¶
` _ array _ `
The source array.
` _ new_element _ `
The element to be appended. The type of the element depends on the type of the
array:
| |
snowflake_docs/create-table_25_2.txt | -+--------+-------+---------+-------------+------------+-------+------------+---------|
> | AMOUNT | NUMBER(38,0) | COLUMN | Y | NULL | N | N
> | NULL | NULL | NULL |
>
> +--------+--------------+--------+-------+---------+-------------+------------+-------+------------+---------+
>
> ... | |
snowflake_docs/add_regex_2_0.txt | label-custom-classification-working)
Adds categories and a regular expression to the custom classifier, while
optionally specifying a regular expression for the column name and a comment.
| |
snowflake_docs/array_cat_6_0.txt | Examples ¶
This example shows how to use ` ARRAY_CAT() ` :
> Create a simple table and data:
>
>>
>> CREATE TABLE array_demo (ID INTEGER, array1 ARRAY, array2 ARRAY);
>>
>>
>> Copy
>>
>>
>> INSERT INTO array_demo (ID, array1, array2)
>> SELECT 1, ARRAY_CONSTRUCT(1, 2), ARRAY_CONSTRUCT(3, 4);
>... | |
snowflake_docs/try_to_timestamp_6_0.txt | Usage Notes ¶
* If the format of the input parameter is a string that contains an integer:
* After the string is converted to an integer, the integer is treated as a number of seconds, milliseconds, microseconds, or nanoseconds after the start of the Unix epoch (1970-01-01 00:00:00.000000000 UTC).
* If... | |
snowflake_docs/h3_polygon_to_cells_strings_0_0.txt | /
1. Conversion, Input, Parsing
14. Conversion, Output, Formatting
23. Constructor
32. Accessor
44. Relationship and Measurement
61. Transformation
75. Utility
77. H3
geospatial) H3_POLYGON_TO_CELLS_STRINGS
Categories:
| |
snowflake_docs/grants_to_users_3_0.txt | Usage Notes ¶
* Latency for the view may be up to 120 minutes (2 hours).
* This view records current grants and historical grants, including grants that were revoked and granted again. When a single grant occurs and as long as it remains active (i.e. not revoked):
* The view includes one row for the grant ... | |
snowflake_docs/to_timestamp_4_0.txt | Returns ¶
The data type of the returned value is one of the ` TIMESTAMP ` data types.
By default, the data type is ` TIMESTAMP_NTZ ` . You can change this by
setting the session parameter [ TIMESTAMP_TYPE_MAPPING
| |
snowflake_docs/system_behavior_change_bundle_status_1_0.txt | SYSTEM$BEHAVIOR_CHANGE_BUNDLE_STATUS ¶
Returns the status of the specified [ behavior change release bundle
bundles) for the current account.
See also:
[ SYSTEM$ENABLE_BEHAVIOR_CHANGE_BUNDLE
SYSTEM$DISABLE_BEHAVIOR_CHANGE_BUNDLE
SYSTEM$SHOW_ACTIVE_BEHAVIOR_CHANGE_BUNDLES
| |
snowflake_docs/mode_6_0.txt | Examples ¶
The following code demonstrates the use of ` MODE ` :
> Create a table and data:
>
>>
>> create or replace table aggr(k int, v decimal(10,2));
>>
>>
>> Copy
>
> Get the ` MODE ` value for column v. The function returns NULL because
> there are no rows.
>
>>
>> select mode(v) from aggr;
>> ... | |
snowflake_docs/revoke-privilege-application-role_8_0.txt | Usage notes ¶
* A privilege can be granted to an application role multiple times by different grantors. A REVOKE _ <privilege> _ statement only revokes grants for which the active role, or a lower role in a hierarchy, is the grantor. Any additional grants of a specified privilege by other grantors are ignored.
A ... | |
snowflake_docs/rest_event_history_1_0.txt | REST_EVENT_HISTORY ¶
Returns a list of SCIM REST API requests made to Snowflake over a specified
time interval.
| |
snowflake_docs/st_makegeompoint_0_0.txt | /
1. Conversion, Input, Parsing
14. Conversion, Output, Formatting
23. Constructor
32. Accessor
44. Relationship and Measurement
61. Transformation
75. Utility
77. H3
geospatial) ST_MAKEGEOMPOINT
Categories:
| |
snowflake_docs/replication_group_refresh_history_3_0.txt | Columns ¶
Column Name
|
Data Type
|
Description
---|---|---
REPLICATION_GROUP_NAME
|
TEXT
|
Name of the secondary replication or failover group.
REPLICATION_GROUP_ID
|
NUMBER
|
Internal/system-generated identifier for the replication or failover group.
PHASE_NAME
|
TEXT
|
Current phase in the replication ope... | |
snowflake_docs/show-tasks_7_0.txt | Examples ¶
Show all the tasks whose name starts with ` line ` that you have privileges
to view in the ` tpch.public ` schema:
>
> SHOW TASKS LIKE 'line%' IN tpch.public;
>
>
> Copy
Show all the tasks that you have privileges to view in the ` tpch.public `
schema:
>
> SHOW TASKS IN tpch.public;
>
>
> C... | |
snowflake_docs/st_aswkb_1_0.txt | ST_ASWKB , ST_ASBINARY ¶
types-geometry) , return the binary representation of that value in [ WKB
known_text_representation_of_geometry | |
snowflake_docs/constraints-create_2_0.txt | Creating Constraints Inline ¶
The following inline syntax can only be used for single-column constraints:
CREATE [OR REPLACE] TABLE <name> (<column_name> <column_type> [ <inline_constraint> ] , ... )
ALTER TABLE <name> ADD COLUMN <column_name> <column_type> [ <inline_constraint> ]
Copy
For ` _ inline_constra... | |
snowflake_docs/greatest_3_0.txt | Arguments ¶
` _ exprN _ `
Expressions can be of any data type, but all expressions within a call should
be either the same data type or compatible types.
| |
snowflake_docs/boolor_agg_6_0.txt | Examples ¶
**Aggregate function**
The following example shows that boolor_agg returns true if at least one of
the input values is true.
> Create and load the table:
>
>
> create or replace table test_boolean_agg(
> id integer,
> c1 boolean,
> c2 boolean,
> c3 boolean,
> ... | |
snowflake_docs/create-table_1_0.txt | CREATE TABLE ¶
Creates a new table in the current/specified schema or replaces an existing
table. A table can have multiple columns, with each column definition
consisting of a name, data type, and optionally whether the column:
* Requires a value (NOT NULL).
* Has a default value.
* Has any referential inte... | |
snowflake_docs/create-secret_3_0.txt | OAuth with client credentials flow required parameters ¶
` _ name _ `
String that specifies the identifier (i.e. name) for the secret, must be
unique in your schema.
In addition, the identifier must start with an alphabetic character and cannot
contain spaces or special characters unless the entire identifier strin... | |
snowflake_docs/st_setsrid_2_0.txt | Syntax ¶
ST_SETSRID( <geometry_expression> , <srid> )
Copy
| |
snowflake_docs/get_absolute_path_5_0.txt | Usage notes ¶
* This SQL function returns a value for any role that has the following privilege on the stage:
External stage :
USAGE
Internal stage :
READ
* If files downloaded from an internal stage are corrupted, verify with the stage creator that ` ENCRYPTION = (TYPE = 'SNOWFLAKE_SSE') ` is set for th... | |
snowflake_docs/parameters_9_0.txt | Viewing All Parameters ¶
To display all parameters, including account and object parameters, include
an ` IN ACCOUNT ` clause:
>
> SHOW PARAMETERS IN ACCOUNT;
>
>
> Copy
| |
snowflake_docs/md5_number_upper64_2_0.txt | Syntax ¶
MD5_NUMBER_UPPER64(<msg>)
Copy
| |
snowflake_docs/show-variables_3_0.txt | Parameters ¶
` LIKE ' _ pattern _ ' `
Optionally filters the command output by object name. The filter uses case-
insensitive pattern matching, with support for SQL wildcard characters ( ` %
` and ` _ ` ).
For example, the following patterns return the same results:
` ... LIKE '%testing%' ... `
` ... L... | |
snowflake_docs/functions-regexp_1_0.txt | String Functions (Regular Expressions) ¶
These string functions perform operations that match a regular expression
(often referred to as a “regex”).
| |
snowflake_docs/percent_rank_4_0.txt | Examples ¶
SELECT
exchange,
symbol,
PERCENT_RANK() OVER (PARTITION BY exchange ORDER BY price) AS percent_rank
FROM trades;
+--------+------+------------+
|exchange|symbol|PERCENT_RANK|
+--------+------+------------+
|C |SPY | 0.0|
|C |AAPL | ... | |
snowflake_docs/drop-password-policy_10_0.txt | Example ¶
Drop a password policy:
>
> DROP PASSWORD POLICY password_policy_production_1;
>
>
> Copy
Was this page helpful?
Yes No
Inc. All Rights Reserved .
On this page
1. Syntax
2. Parameters
3. Access control requirements
4. Usage notes
5. Example
Language : **English** | |
snowflake_docs/intro-summary-operators-functions_7_0.txt | User-defined Functions (UDFs) ¶
In addition to the system-defined functions provided by Snowflake, users can
create functions. Snowflake supports the following types of [ UDFs
| |
snowflake_docs/drop-file-format_0_0.txt | /
1. Stage
7. File Format
13. External Volume
20. Pipe
26. Snowpipe Streaming
28. Loading and Unloading
loading) DROP FILE FORMAT
| |
snowflake_docs/aggregate_query_history_5_0.txt | QUERY_PARAMETERIZED_HASH Column ¶
The QUERY_PARAMETERIZED_HASH column contains a hash value that is computed
based on the parameterized query, which means the version of the query after
parameterizing all literals.
For example, the following queries have the same QUERY_PARAMETERIZED_HASH
value:
SELECT * FROM tab... | |
snowflake_docs/var_samp_5_0.txt | Usage Notes ¶
* For single-record inputs, VAR_SAMP, VARIANCE, and VARIANCE_SAMP all return NULL. This is different from the Oracle behavior, where VAR_SAMP returns NULL for a single record and VARIANCE returns 0.
* When passed a VARCHAR expression, this function implicitly casts the input to floating point valu... | |
snowflake_docs/create-connection_2_0.txt | Syntax ¶
**Primary Connection**
CREATE CONNECTION [ IF NOT EXISTS ] <name>
[ COMMENT = '<string_literal>' ]
Copy
**Secondary Connection**
CREATE CONNECTION [ IF NOT EXISTS ] <name>
AS REPLICA OF <organization_name>.<account_name>.<name>
[ COMMENT = '<string_literal>' ]
Copy
| |
snowflake_docs/current_statement_3_0.txt | Arguments ¶
None.
| |
snowflake_docs/declare_1_0.txt | DECLARE (Snowflake Scripting) ¶
Declares one or more Snowflake Scripting variables, cursors, RESULTSETs, or
exceptions.
For more information on variables, cursors, RESULTSETs, and exceptions, see:
See also :
| |
snowflake_docs/array_slice_1_0.txt | ARRAY_SLICE ¶
Returns an array constructed from a specified subset of elements of the input
array.
| |
snowflake_docs/fields_2_0.txt | Columns ¶
Column Name
|
Data Type
|
Description
---|---|---
ROW_IDENTIFIER
|
VARCHAR
|
Type identifier. Use this to join on:
* The DTD_IDENTIFIER column in this view (for nested types).
FIELD_NAME
|
VARCHAR
|
One of the following values:
* For structured OBJECTs, the name of the key.
* For MAPs, KEY for ... | |
snowflake_docs/ilike_any_1_0.txt | ILIKE ANY ¶
Performs a case-insensitive comparison to match a string against any of one or
more specified patterns. Use this function in a WHERE clause to filter for
matches. For case-sensitive matching, use LIKE ANY instead.
Tip
You can use the search optimization service to improve the performance of
queries that ... | |
snowflake_docs/show-stages_2_0.txt | Syntax ¶
SHOW STAGES [ LIKE '<pattern>' ]
[ IN
{
ACCOUNT |
DATABASE |
DATABASE <database_name> |
SCHEMA |
SCHE... | |
snowflake_docs/soundex_p123_5_0.txt | Usage Notes ¶
| |
snowflake_docs/desc-pipe_6_0.txt | Examples ¶
Describe the ` mypipe ` pipe created in the examples in [ CREATE PIPE
>
> desc pipe mypipe;
>
>
> +-------------------------------+--------+---------------+-------------+---------------------------------+----------+---------+
> | created_on | name | database_name | schema_n... | |
snowflake_docs/approx_top_k_3_0.txt | Arguments ¶
* ` _ expr _ ` : The expression (e.g. column name) for which you want to find the most common values.
* ` _ k _ ` : The number of values whose counts you want approximated. For example, if you want to see the top 10 most common values, then set ` _ k _ ` to 10.
If ` _ k _ ` is omitted, the defa... | |
snowflake_docs/data-types-datetime_5_0.txt | TIME ¶
Snowflake supports a single TIME data type for storing times in the form of `
HH:MI:SS ` .
TIME supports an optional precision parameter for fractional seconds, e.g.
TIME(3). Time precision can range from 0 (seconds) to 9 (nanoseconds). The
default precision is 9.
All TIME values must be between ` 00:00:00 ... | |
snowflake_docs/return_3_0.txt | Usage Notes ¶
* A RETURN statement can be executed in:
* A stored procedure.
* An anonymous block.
* A RETURN statement returns one of the following types:
* A table. Use ` TABLE(...) ` in the ` RETURN ` statement.
If your block is in a stored procedure, you must also specify the ` RETURNS
sta... | |
snowflake_docs/create-security-integration-scim_12_0.txt | Okta example ¶
The following example creates an Okta SCIM integration with the default
settings:
CREATE OR REPLACE SECURITY INTEGRATION okta_provisioning
TYPE = scim
SCIM_CLIENT = 'OKTA'
RUN_AS_ROLE = 'OKTA_PROVISIONER';
Copy
integration) :
>
> DESC SECURITY INTEGRATION okta_provision... | |
snowflake_docs/array_max_5_0.txt | Usage Notes ¶
* The function determines the element to return by comparing the elements in the array. The function supports comparing elements of the same data type or of the following data types:
* Elements of the NUMBER and FLOAT data types.
* Elements of the TIMESTAMP_LTZ and TIMESTAMP_TZ data types. ... | |
snowflake_docs/regr_intercept_0_0.txt | /
1. General
26. Bitwise
30. Boolean
34. Hash
36. Semi-Structured
39. Linear Regression
49. Statistics and Probability
52. Count Distinct Values
60. Cardinality Estimation
68. Similarity Estimation
73... | |
snowflake_docs/commands-table_10_0.txt | Materialized View ¶
| |
snowflake_docs/create-api-integration_17_0.txt | Examples ¶
This example shows creation of an API integration and use of that API
integration in a subsequent CREATE EXTERNAL FUNCTION statement:
create or replace api integration demonstration_external_api_integration_01
api_provider=aws_api_gateway
api_aws_role_arn='arn:aws:iam::123456789012:rol... | |
snowflake_docs/create-function_7_0.txt | SQL Handler ¶
CREATE [ OR REPLACE ] [ { TEMP | TEMPORARY } ] [ SECURE ] FUNCTION <name> (
[ <arg_name> <arg_data_type> [ DEFAULT <default_value> ] ] [ , ... ] )
[ COPY GRANTS ]
RETURNS { <result_data_type> | TABLE ( <col_name> <col_data_type> [ , ... ] ) }
[ [ NOT ] NULL ]
[ { VOL... | |
snowflake_docs/create-database-role_10_0.txt | Usage notes ¶
* When you create a database role, the USAGE privilege on the database that contains the database role is granted to the database role automatically.
Caution
Avoid recreating a database role (using the OR REPLACE keywords). Behind the
scenes, recreating an object (using CREATE OR REPLACE _ <object> ... | |
snowflake_docs/show-locks_3_0.txt | Parameters ¶
` IN ACCOUNT `
Returns all locks across all users in the account. This parameter only applies
when executed by users using the ACCOUNTADMIN role (i.e. account
administrators).
For all other roles, the function only shows locks across all sessions for the
current user.
| |
snowflake_docs/pow_4_0.txt | Examples ¶
SELECT x, y, pow(x, y) FROM tab;
-----+-----+-------------+
X | Y | POW(X, Y) |
-----+-----+-------------+
0.1 | 2 | 0.01 |
2 | 3 | 8 |
2 | 0.5 | 1.414213562 |
2 | -1 | 0.5 |
-----+-----+-------------+
Copy
Was this page he... | |
snowflake_docs/values_3_0.txt | Usage Notes ¶
* The VALUES clause is limited to 16,384 rows.
| |
snowflake_docs/alter-replication-group_5_0.txt | label-account-replication-integrations) .
>
> If integration objects are included in the list of specified object types,
> the ` ALLOWED_INTEGRATION_TYPES ` parameter must be set.
>
> NETWORK POLICIES :
>
>
> _Requires Business Critical Edition (or higher)._
>
> All network policies in the source account.
>
> RESOU... | |
snowflake_docs/data-types-structured_50_0.txt | Working With Other Semi-Structured Functions ¶
The following functions do not accept a structured ARRAY, structured OBJECT,
or MAP as an input argument:
Passing a structured type as input results in an error.
| |
snowflake_docs/ilike_any_6_0.txt | Usage Notes ¶
* SQL wildcards are supported in ` _ pattern _ ` :
* An underscore ( ` _ ` ) matches any single character.
* A percent sign ( ` % ` ) matches any sequence of zero or more characters.
* Wildcards in ` _ pattern _ ` include newline characters ( ` n ` ) in ` _ subject _ ` as matches. ... | |
snowflake_docs/hll_3_0.txt | Arguments ¶
` _ expr1 _ `
This is the expression for which you want to know the number of distinct
values.
` _ expr2 _ `
This is the optional expression used to group rows into partitions.
| |
snowflake_docs/close_4_0.txt | Examples ¶
CLOSE my_cursor_name;
Copy
For a more complete example of using a cursor, see [ the introductory cursor
snowscript-cursors-example) .
An example using a loop is included in the [ documentation on FOR loops
Was this page helpful?
Yes No
Inc. All Rights Reserved .
On this page
1. Syntax
2. Usage... | |
snowflake_docs/operators-subquery_13_0.txt | Examples ¶
Use a NOT IN subquery that is equivalent to the ` != ALL ` subquery example
(earlier in this topic):
>
> SELECT department_id
> FROM departments d
> WHERE d.department_id NOT IN (SELECT e.department_id
> FROM employees e);
>
>
> Copy
Was this page helpful?... | |
snowflake_docs/drop-row-access-policy_9_0.txt | Example ¶
The following example drops a row access policy from a table.
>
> DROP ROW ACCESS POLICY rap_table_employee_info;
>
>
> Copy
Was this page helpful?
Yes No
Inc. All Rights Reserved .
On this page
1. Syntax
2. Parameters
3. Access control requirements
4. Usage notes
5. Example
Related... | |
snowflake_docs/array_remove_at_3_0.txt | Arguments ¶
` _ array _ `
The source array.
` _ position _ `
The (zero-based) position of the element to be removed. The function removes
the element at this position.
A negative position is interpreted as an index from the back of the array
(e.g. ` -1 ` removes the last element in the array).
| |
snowflake_docs/password_policies_0_0.txt | /
Schema:
| |
snowflake_docs/show-user-functions_4_0.txt | Usage Notes ¶
* Columns that start with the prefix ` is_ ` return either ` Y ` (yes) or ` N ` (no).
* The command does not require a running warehouse to execute.
* The command returns a maximum of 10K records for the specified object type, as dictated by the access privileges for the role used to execu... | |
snowflake_docs/system_external_table_pipe_status_0_0.txt | /
1. Control
29. Information
90. Query Information
SYSTEM$EXTERNAL_TABLE_PIPE_STATUS
Categories:
| |
snowflake_docs/var_samp_4_0.txt | Returns ¶
The data type of the returned value is ` NUMBER(<precision>, <scale>) ` .
The scale depends upon the values being processed.
| |
snowflake_docs/tanh_4_0.txt | Examples ¶
>
> SELECT TANH(1.5);
>
> --------------+
> TANH(1.5) |
> --------------+
> 0.9051482536 |
> --------------+
>
>
> Copy
Was this page helpful?
Yes No
Inc. All Rights Reserved .
On this page
1. Syntax
2. Arguments
3. Examples
Language : **English** | |
snowflake_docs/show-external-volumes_6_0.txt | label-security-custom-role) .
For general information about roles and privilege grants for performing SQL
overview.html |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.