id stringlengths 16 145 | text stringlengths 1 179k | title stringclasses 1
value |
|---|---|---|
snowflake_docs/like_any_9_0.txt | Examples ¶
Create a table that contains some strings:
CREATE OR REPLACE TABLE like_example(name VARCHAR(20));
INSERT INTO like_example VALUES
('John Dddoe'),
('Joe Doe'),
('John_down'),
('Joe down'),
('Tom Doe'),
('Tim down'),
(null);
Copy
This que... | |
snowflake_docs/try_decrypt_4_0.txt | Returns ¶
Returns the decrypted value as a BINARY value or a NULL value if any runtime
error occurs during decryption.
| |
snowflake_docs/collation_21_0.txt | Performance Implications of Using Collation ¶
Using collation can affect the performance of various database operations:
* Operations involving comparisons might be slower.
sorts, ` GROUP BY ` operations, etc.
| |
snowflake_docs/snowflake-db-classes_3_0.txt | List Available Classes ¶
You can find available classes and learn more about each class using SHOW
commands. These commands allow you to:
* Find all available classes in the SNOWFLAKE database .
* List class methods .
* List class roles .
| |
snowflake_docs/base64_encode_8_0.txt | Examples ¶
Encode a string using Base64:
SELECT BASE64_ENCODE('Snowflake');
----------------------------+
BASE64_ENCODE('SNOWFLAKE') |
----------------------------+
U25vd2ZsYWtl |
----------------------------+
Copy
Encode a string containing non-ASCII characters using Base64 w... | |
snowflake_docs/strip_null_value_2_0.txt | label-variant-null) value to a SQL NULL value. All other
variant values are passed unchanged.
| |
snowflake_docs/st_transform_2_0.txt | label-geometry-change-srs) . If you just need to change the
SRID without changing the coordinates (e.g. if the SRID was incorrect), use [
| |
snowflake_docs/regexp_instr_2_0.txt | Syntax ¶
REGEXP_INSTR( <subject> , <pattern> [ , <position> [ , <occurrence> [ , <option> [ , <regexp_parameters> [ , <group_num> ] ] ] ] ] )
Copy
| |
snowflake_docs/last_query_id_1_0.txt | LAST_QUERY_ID ¶
Returns the ID of a specified query in the current session. If no query is
specified, the most recently-executed query is returned.
See also:
| |
snowflake_docs/data-types-structured_5_0.txt | Specifying a MAP ¶
To specify a MAP, use the following syntax:
MAP( <key_type> , <value_type> [ NOT NULL ] )
Copy
Where:
* VARCHAR
* NUMBER with the scale 0
You cannot use a floating point data type as the type for the key.
Note that map keys cannot be NULL.
You can also specify a structured ARRAY, a s... | |
snowflake_docs/show-masking-policies_5_0.txt | label-access-control-overview-privileges) at a minimum:
Privilege
|
Object
|
Notes
---|---|---
APPLY MASKING POLICY
|
Account
|
APPLY
|
Masking policy
|
OWNERSHIP
|
Masking policy
|
OWNERSHIP is a special privilege on an object that is automatically granted to
the role that created the object, but can also be t... | |
snowflake_docs/system_revoke_privatelink_0_0.txt | /
1. Control
29. Information
90. Query Information
SYSTEM$REVOKE_PRIVATELINK
Categories:
| |
snowflake_docs/extract_answer-snowflake-cortex_4_0.txt | Arguments ¶
` _ source_document _ `
A string containing the plain-text or JSON document that contains the answer
to the question.
` _ question _ `
A string containing the question to be answered.
| |
snowflake_docs/show-resource-monitors_2_0.txt | Syntax ¶
SHOW RESOURCE MONITORS [ LIKE '<pattern>' ]
Copy
| |
snowflake_docs/current_role_0_0.txt | /
1. General
14. Session
29. Session Object
41. Alert
context) CURRENT_ROLE
Categories:
| |
snowflake_docs/create-clone_17_0.txt | Examples ¶
Clone a database and all objects within the database at its current state:
>
> CREATE DATABASE mytestdb_clone CLONE mytestdb;
>
>
> Copy
Clone a schema and all objects within the schema at its current state:
>
> CREATE SCHEMA mytestschema_clone CLONE testschema;
>
>
> Copy
Clone a table at its... | |
snowflake_docs/strtok_split_to_table_3_0.txt | Arguments ¶
**Required:**
` _ string _ `
Text to be tokenized.
**Optional:**
` _ delimiter_list _ `
Set of delimiters. Optional. Default value is a single space character.
| |
snowflake_docs/operators-arithmetic_1_0.txt | Arithmetic Operators ¶
Arithmetic operators are used to generate numeric output from one or more
input expressions.
The input expressions must be numeric (fixed-point or floating point), except
in the following cases:
* The unary operator ` + ` can take a number string, but this causes the string to be implicitly... | |
snowflake_docs/reserved-keywords_1_1.txt | KE
|
Reserved by Snowflake.
ROW
|
Reserved by ANSI.
ROWS
|
Reserved by ANSI.
**S**
|
SAMPLE
|
Reserved by ANSI.
SCHEMA
|
Cannot be used as an identifier in a SHOW command (e.g. ‘SHOW … IN
<identifier>’).
SELECT
|
Reserved by ANSI.
SET
|
Reserved by ANSI.
SOME
|
Reserved by Snowflake.
START
|
Reserved ... | |
snowflake_docs/show-database-roles_4_0.txt | Optional parameters ¶
` LIMIT _ rows _ [ FROM ' _ name_string _ ' ] `
Optionally limits the maximum number of rows returned, while also enabling
“pagination” of the results. The actual number of rows returned might be less
than the specified limit. For example, the number of existing objects is less
than the... | |
snowflake_docs/current_organization_name_3_0.txt | Arguments ¶
None.
| |
snowflake_docs/parameters_4_0.txt | label-periodic-rekeying) .
ENABLE_IDENTIFIER_FIRST_LOGIN
|
ENABLE_INTERNAL_STAGES_PRIVATELINK
|
Allows the [ SYSTEM$GET_PRIVATELINK_CONFIG
internal-stages ` key in the query result.
EVENT_TABLE
|
Used to set an event table as the active event table for the account.
ENFORCE_NETWORK_RULES_FOR_INTERNAL_STAGES
| ... | |
snowflake_docs/hour-minute-second_2_0.txt | Syntax ¶
HOUR( <time_or_timestamp_expr> )
MINUTE( <time_or_timestamp_expr> )
SECOND( <time_or_timestamp_expr> )
Copy
| |
snowflake_docs/concat_ws_3_0.txt | Arguments ¶
` _ separator _ `
The separator must meet the same requirements as ` _ expressionN _ ` .
` _ expressionN _ `
The input expressions must all be strings, or all be binary values.
| |
snowflake_docs/show-delegated-authorizations_3_0.txt | Variants ¶
` SHOW DELEGATED AUTHORIZATIONS BY USER _ username _ `
Lists all the active delegated authorizations that have been approved by a
user. This variant requires the MODIFY privilege on the user.
` SHOW DELEGATED AUTHORIZATIONS TO SECURITY INTEGRATION _
integration_name _ `
Lists all the active d... | |
snowflake_docs/equal_null_3_0.txt | Usage Notes ¶
* The value returned depends on whether any of the inputs are NULL values:
Returns TRUE :
` EQUAL_NULL( <null> , <null> ) `
Returns FALSE :
` EQUAL_NULL( <null> , <not_null> ) `
` EQUAL_NULL( <not_null> , <null> ) `
Otherwise:
> ` EQUAL_NULL(<expr1>, <expr2>) ` is equivalent to ` <expr1... | |
snowflake_docs/system_authorize_privatelink_3_0.txt | Arguments ¶
` ' _ aws_id _ ' `
The 12-digit identifier that uniquely identifies your Amazon Web Services
(AWS) account, as a string.
` ' _ private-endpoint-resource-id _ ' `
The identifier that uniquely identifies your Snowflake account in Microsoft
Azure (Azure) as a string.
` ' _ federated_token _ ' `
The... | |
snowflake_docs/st_aswkt_3_0.txt | Arguments ¶
` _ geography_or_geometry_expression _ `
The argument must be an expression of type GEOGRAPHY or GEOMETRY.
| |
snowflake_docs/system_unblock_internal_stages_public_access_6_0.txt | Examples ¶
Allow public IP addresses to access the Azure internal stage.
>
> USE ROLE accountadmin;
>
> SELECT SYSTEM$UNBLOCK_INTERNAL_STAGES_PUBLIC_ACCESS();
>
>
> Copy
Was this page helpful?
Yes No
Inc. All Rights Reserved .
On this page
1. Syntax
2. Arguments
3. Returns
4. Usage Notes
... | |
snowflake_docs/system_last_change_commit_time_3_0.txt | Arguments ¶
` _ object_name _ `
Specifies the table or view.
| |
snowflake_docs/grouping_3_0.txt | Usage Notes ¶
GROUPING is not an aggregate function, but rather a utility function that can
be used alongside aggregation, to determine the level of aggregation a row was
generated for:
* GROUPING( ` _ expr _ ` ) returns 0 for a row that is grouped on ` _ expr _ ` , and 1 for a row that is not grouped on ` _ exp... | |
snowflake_docs/create-security-integration-scim_0_0.txt | /
1. General
7. API
10. Catalog
15. External access
18. Notification
21. Security
25. Storage
| |
snowflake_docs/md5_number_lower64_5_0.txt | Usage Notes ¶
* Although the MD5* functions were originally developed as cryptographic functions, they are now obsolete for cryptography and should not be used for that purpose. They can be used for other purposes (for example, as “checksum” functions to detect accidental data corruption).
If you need to encrypt ... | |
snowflake_docs/binary-input-output_9_0.txt | Data Loading ¶
When used for data loading, BINARY_FORMAT specifies the format of binary
values in your staged data files. This option overrides any value set for
the BINARY_INPUT_FORMAT parameter in the session (see Session Parameters for
Binary Values above).
If the option is set to ‘HEX’ or ‘BASE64’, data load... | |
snowflake_docs/st_geometryfromwkb_1_0.txt | ST_GEOMETRYFROMWKB ¶
known_text_representation_of_geometry | |
snowflake_docs/decrypt_4_0.txt | Returns ¶
Returns the decrypted value as a BINARY value. If the original value before
encryption was VARCHAR, you must explicitly convert the returned BINARY back
to VARCHAR. For example:
... TO_VARCHAR(DECRYPT(ENCRYPT('secret', 'key'), 'key'), 'utf-8') ...
Copy
For more complete examples, see the Examples bel... | |
snowflake_docs/summarize-snowflake-cortex_8_0.txt | Example ¶
In this example, a table named ` reviews ` contains a column named `
review_content ` containing the text of reviews submitted by users. The query
returns a summary of each review.
SELECT SNOWFLAKE.CORTEX.SUMMARIZE(review_content) FROM reviews LIMIT 10;
Copy
| |
snowflake_docs/application-state-view_2_0.txt | Columns ¶
Column Name
|
Data Type
|
Description
---|---|---
CONSUMER_SNOWFLAKE_REGION
|
VARCHAR
|
The Snowflake region of the consumer account where the application is
installed.
CONSUMER_ORGANIZATION_NAME
|
VARCHAR
|
The organization name of the consumer account.
CONSUMER_ACCOUNT_LOCATOR
|
VARCHAR
|
The con... | |
snowflake_docs/create-database_8_0.txt | label-access-control-overview-privileges) at a minimum:
Privilege
|
Object
|
Notes
---|---|---
CREATE DATABASE
|
Account
|
Only the SYSADMIN role, or a higher role, has this privilege by default. The
privilege can be granted to additional roles as needed.
For instructions on creating a custom role with a specifie... | |
snowflake_docs/snowflake-db-classes_7_0.txt | Class Roles ¶
A class might have one or more roles that are granted the USAGE privilege on
some or all class methods. You can list the available roles in a class using
List all the roles in the SNOWFLAKE.ML.ANOMALY_DETECTION class:
SHOW ROLES IN CLASS ANOMALY_DETECTION;
Copy
+-------------------------------+... | |
snowflake_docs/to_time_7_0.txt | Examples ¶
These examples demonstrate the ` TO_TIME ` function.
>
> SELECT TO_TIME('13:30:00'), TIME('13:30:00');
> +---------------------+------------------+
> | TO_TIME('13:30:00') | TIME('13:30:00') |
> |---------------------+------------------|
> | 13:30:00 | 13:30:00 |
> ... | |
snowflake_docs/undrop-iceberg-table_4_0.txt | Usage notes ¶
* Restoring Iceberg tables is only supported in the current schema or current database, even if the table name is fully-qualified.
* If an Iceberg table with the same name already exists, an error is returned.
* To undrop an Iceberg table whose external volume has been dropped, undrop the exter... | |
snowflake_docs/drop-application_1_0.txt | DROP APPLICATION ¶
Available
This feature is not supported on Google Cloud Platform.
Removes an application from the system in the Native Apps Framework.
See also:
| |
snowflake_docs/max_5_0.txt | Collation Details ¶
* The comparisons follow the collation based on the input arguments’ collations and precedences.
* The collation of the result is the same as the collation of the input.
| |
snowflake_docs/drop-budget_9_0.txt | Usage Notes ¶
Dropped budgets cannot be recovered; they must be recreated.
| |
snowflake_docs/replication_usage_history_1_0.txt | REPLICATION_USAGE_HISTORY ¶
This function has been deprecated. Use [ DATABASE_REPLICATION_USAGE_HISTORY
This table function can be used to query the replication history for a
specified database within a specified date range. The information returned by
the function includes the database name, credits consumed and by... | |
snowflake_docs/alter-replication-group_13_0.txt | | | | | __ day of week (0-6, SUN-SAT, or L)
| |
snowflake_docs/atan2_0_0.txt | /
1. Arithmetic
4. Rounding and Truncation
13. Exponent and Root
21. Logarithmic
24. Trigonometric
42. Other
numeric) ATAN2
Categories:
| |
snowflake_docs/parameters_16_0.txt | AUTOCOMMIT_API_SUPPORTED (View-only) ¶
Type :
N/A
Data Type :
Boolean
Description :
For Snowflake internal use only. View-only parameter that indicates whether
API support for autocommit is enabled for your account. If the value is ` TRUE
` , you can enable or disable autocommit through the APIs for the following... | |
snowflake_docs/create-external-volume_11_0.txt | label-external-volume-s3-storage-retrieve-aws-iam-user) .
* Regarding metadata:
Attention
Customers should ensure that no personal data (other than for a User object),
sensitive data, export-controlled data, or other regulated data is entered as
metadata when using the Snowflake service. For more information, see [
... | |
snowflake_docs/system_estimate_search_optimization_costs_6_0.txt | label-alter-table-searchoptimizationaction-add) command.
This entire argument must be enclosed in single quotes. Within this string,
syntax.html | |
snowflake_docs/system_convert_pipes_sqs_to_sns_4_0.txt | Access Control Requirements ¶
Only account administrators can execute this function.
| |
snowflake_docs/access_history_8_0.txt | Usage Notes: ` object_modified_by_ddl ` Column ¶
* ` IF [ NOT ] EXISTS ` clauses: The ` object_modified_by_ddl ` column only records ` CREATE ` or ` REPLACE ` when creating or modifying an object.
* Snowflake supports the following object domains.
* Table and external table.
* View and materi... | |
snowflake_docs/call-with_12_0.txt | Java, Python, or Scala ¶
` RUNTIME_VERSION = ' _ language_runtime_version _ ' `
The language runtime version to use. Currently, the supported versions are:
* Java: 11
* Python:
> * 3.8
>
> * 3.9
>
> * 3.10
>
> * 3.11
* Scala: 2.12
` PACKAGES = ( ' _ snowpark_package_name _ ' [, '... | |
snowflake_docs/array_generate_range_5_0.txt | Usage Notes ¶
* After ` _ start _ ` , each subsequent element increases or decreases by ` _ step _ ` (depending on whether ` _ step _ ` is positive or negative) up to (but not including) ` _ stop _ ` .
For example:
* ` ARRAY_GENERATE_RANGE(10, 50, 10) ` returns ` [10, 20, 30, 40] ` .
* ` ARRAY... | |
snowflake_docs/drop-projection-policy_3_0.txt | Syntax ¶
DROP PROJECTION POLICY <name>
Copy
| |
snowflake_docs/alter-stream_5_0.txt | Examples ¶
Add a comment for a stream:
>
> ALTER STREAM mystream SET COMMENT = 'New comment for stream';
>
>
> Copy
Was this page helpful?
Yes No
Inc. All Rights Reserved .
On this page
1. Syntax
2. Parameters
3. Usage Notes
4. Examples
Language : **English** | |
snowflake_docs/match_recognize_15_0.txt | Expressions in DEFINE and MEASURES clauses ¶
> The ` DEFINE ` and ` MEASURES ` clauses allow expressions. Those
> expressions can be complex and can include [ window functions
> navigational functions (which are a type of window function).
In most respects, expressions in ` DEFINE ` and ` MEASURES ` follow the
r... | |
snowflake_docs/system_clustering_ratio_5_0.txt | Examples ¶
Calculate the clustering ratio for a table using two columns in the table:
>
> SELECT SYSTEM$CLUSTERING_RATIO('t2', '(col1, col3)');
>
> +-------------------------------+
> | SYSTEM$CLUSTERING_RATIO('T2') |
> |-------------------------------|
> | 77.1 |
> ... | |
snowflake_docs/parse_json_6_0.txt | Examples ¶
This shows an example of storing different types of data in a VARIANT column
by calling ` PARSE_JSON ` to parse strings.
> Create and fill a table. Note that the ` INSERT ` statement uses the `
> PARSE_JSON ` function.
>
>>
>> CREATE OR REPLACE TABLE vartab (n NUMBER(2), v VARIANT);
>>
>> INS... | |
snowflake_docs/arrays_overlap_2_0.txt | Syntax ¶
ARRAYS_OVERLAP( <array1> , <array2> )
Copy
| |
snowflake_docs/match_recognize_22_0.txt | Report All Rows for All Matches for One Company ¶
This example returns all rows within each match (not just one summary row per
match). This pattern searches for rising prices of the ‘ABCD’ company:
>
> select price_date, match_number, msq, price, cl from
> (select * from stock_price_history where company=... | |
snowflake_docs/functions-aggregation_4_0.txt | Aggregate Functions and NULL Values ¶
Some aggregate functions ignore NULL values. For example, [ AVG
` to be ` 3 ` , based on the following formula:
> ` (1 + 5) / 2 = 3 `
In both the numerator and the denominator, only the two non-NULL values are
used.
If all of the values passed to the aggregate function a... | |
snowflake_docs/is_database_role_in_session_4_0.txt | Usage notes ¶
These notes only apply to the IS_DATABASE_ROLE_IN_SESSION function:
* Use this table to predict the evaluation of the function when the function argument is a string literal:
Context
|
Evaluation
---|---
Query.
|
Session database.
Table or view definition with WHERE clause.
|
Depends on the fo... | |
snowflake_docs/snowflake-db-roles_3_0.txt | ACCOUNT_USAGE schema ¶
roles, each granted the SELECT privilege on specific views.
Role
|
Purpose and Description
---|---
OBJECT_VIEWER
|
The OBJECT_VIEWER role provides visibility into object metadata.
USAGE_VIEWER
|
The USAGE_VIEWER role provides visibility into historical usage information.
GOVERNANCE_VIE... | |
snowflake_docs/array_insert_6_0.txt | Examples ¶
This shows a simple example of inserting into an array:
SELECT ARRAY_INSERT(ARRAY_CONSTRUCT(0,1,2,3),2,'hello');
+--------------------------------------------------+
| ARRAY_INSERT(ARRAY_CONSTRUCT(0,1,2,3),2,'HELLO') |
|--------------------------------------------------|
| [ ... | |
snowflake_docs/system_show_active_behavior_change_bundles_6_0.txt | Examples ¶
The following example returns information about the current behavior change
bundles.
SELECT SYSTEM$SHOW_ACTIVE_BEHAVIOR_CHANGE_BUNDLES();
Copy
+--------------------------------------------------------------------------------------------------------------+
| SYSTEM$SHOW_ACTIVE_BEHAVIOR_CHANGE_B... | |
snowflake_docs/connect-by_9_0.txt | 112 bolt | 16 | 112 | 12 | ->
1 -> 12 -> 112 |
>> | piston | 4 | 121 | 12 | ->
1 -> 12 -> 121 |
>> | cylinder block | 1 | 122 | 12 | ->
1 -> 12 -> 122 |
>>
+----------------+... | |
snowflake_docs/bitshiftright_5_0.txt | Examples ¶
This example shows how to use ` BITSHIFTLEFT ` and ` BITSHIFTRIGHT ` :
> Create a simple table and data:
>
>>
>> CREATE TABLE bits (ID INTEGER, bit1 INTEGER, bit2 INTEGER);
>>
>>
>> Copy
>>
>>
>> INSERT INTO bits (ID, bit1, bit2) VALUES
>> ( 11, 1, 1), -- Bits are all t... | |
snowflake_docs/database_refresh_history_2_0.txt | Syntax ¶
DATABASE_REFRESH_HISTORY( '<secondary_db_name>' )
Copy
| |
snowflake_docs/create-table_10_0.txt | label-sequence-semantics) .
>
> The default value for both the start value and the step/increment value is `
> 1 ` .
>
> Use ORDER or NOORDER to specify whether or not the values are generated for
> the auto-incremented column in [ increasing or decreasing order
> increasing-values) .
>
> * ORDER specifies that the ... | |
snowflake_docs/st_distance_2_0.txt | label-data-types-geography) or the minimum Euclidean
types-geometry) objects.
| |
snowflake_docs/create-role_10_0.txt | Examples ¶
>
> CREATE ROLE myrole;
>
>
> Copy
Was this page helpful?
Yes No
Inc. All Rights Reserved .
On this page
1. Syntax
2. Required parameters
3. Optional parameters
4. Access control requirements
5. Usage notes
6. Examples
Language : **English** | |
snowflake_docs/create-stage_14_0.txt | TYPE = JSON ¶
` COMPRESSION = AUTO | GZIP | BZ2 | BROTLI | ZSTD | DEFLATE |
RAW_DEFLATE | NONE `
Use :
Data loading and external tables
Definition :
* When loading data, specifies the current compression algorithm for the data file. Snowflake uses this option to detect how an already-compressed ... | |
snowflake_docs/literals-table_0_0.txt | /
Literals
| |
snowflake_docs/extract_answer-snowflake-cortex_1_0.txt | EXTRACT_ANSWER (SNOWFLAKE.CORTEX) ¶
_Fully qualified name:_ SNOWFLAKE.CORTEX.EXTRACT_ANSWER
cortex/llm-functions.html | |
snowflake_docs/show-image-repositories_9_0.txt | Examples ¶
The following two examples list repositories in the current database and
current schema:
SHOW IMAGE REPOSITORIES;
Copy
SHOW IMAGE REPOSITORIES IN SCHEMA;
Copy
The following example lists repositories in the current database and the
specified schema:
SHOW IMAGE REPOSITORIES IN SCHEMA sc1;
Copy
... | |
snowflake_docs/system_task_dependents_enable_5_0.txt | Usage Notes ¶
* ` _ task_name _ ` is a string so it must be enclosed in single quotes:
* Note that the entire name must be enclosed in single quotes, including the database and schema (if the name is fully-qualified), i.e. ` '<db>.<schema>.<task_name>' ` .
* If the task name is case-sensitive or includ... | |
snowflake_docs/show-organization-accounts_8_0.txt | Examples ¶
Show all the accounts whose name starts with ` myaccount ` :
SHOW ORGANIZATION ACCOUNTS LIKE 'myaccount%';
Copy
Was this page helpful?
Yes No
Inc. All Rights Reserved .
On this page
1. Syntax
2. Parameters
3. Usage Notes
4. Output
5. Examples
Language : **English** | |
snowflake_docs/approx_percentile_6_0.txt | Examples ¶
Demonstrate the ` APPROX_PERCENTILE ` function:
> Create and populate a table with values:
>
>>
>> CREATE TABLE testtable (c1 INTEGER);
>> INSERT INTO testtable (c1) VALUES
>> (0),
>> (1),
>> (2),
>> (3),
>> (4),
>> (5),
>> (6),
>> (... | |
snowflake_docs/stage_directory_file_registration_history_3_0.txt | Arguments ¶
**Required:**
` STAGE_NAME => ' _ string _ ' `
A string specifying the name of a stage that has a directory table.
**Optional:**
` START_TIME => _ constant_expr _ `
Timestamp (in TIMESTAMP_LTZ format), within the last 14 days, marking the
start of the time range for retrieving metadata update event... | |
snowflake_docs/array_agg_3_0.txt | Arguments ¶
**Required:**
` _ expr1 _ `
An expression (typically a column name) that determines the values to be put
into the array.
` OVER() `
The OVER clause specifies that the function is being used as a window
**Optional:**
` DISTINCT `
Removes duplicate values from the array.
` WITHIN GROUP _ orderby_claus... | |
snowflake_docs/drop-connection_1_0.txt | DROP CONNECTION ¶
Requires Business Critical Edition (or higher). To inquire about upgrading,
please contact [ Snowflake Support
Snowflake-Lodge) .
Removes a connection from the account.
See also:
| |
snowflake_docs/like_any_1_0.txt | LIKE ANY ¶
Performs a case-sensitive 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-insensitive matching, use ILIKE ANY instead.
Tip
You can use the search optimization service to improve the performance of
queries that ... | |
snowflake_docs/data-types-structured_0_0.txt | /
data-types) Structured
| |
snowflake_docs/create-projection-policy_4_0.txt | Parameters ¶
` _ name _ `
Identifier for the projection policy; must be unique for your schema.
The identifier value must start with an alphabetic character and cannot
contain spaces or special characters unless the entire identifier string is
enclosed in double quotes (e.g. ` "My object" ` ). Identifiers enclose... | |
snowflake_docs/st_contains_7_0.txt | GEOGRAPHY Examples ¶
This shows a simple use of the ST_CONTAINS function:
>
> create table geospatial_table_01 (g1 GEOGRAPHY, g2 GEOGRAPHY);
> insert into geospatial_table_01 (g1, g2) values
> ('POLYGON((0 0, 3 0, 3 3, 0 3, 0 0))', 'POLYGON((1 1, 2 1, 2 2, 1 2,
> 1 1))');
>
>
> Copy
>
>
> S... | |
snowflake_docs/show-databases-in-replication-group_0_0.txt | /
4. Replication
11. Failover/Failback
18. Client Redirect
SHOW DATABASES IN REPLICATION GROUP
| |
snowflake_docs/alter-secret_10_0.txt | label-security-custom-role) .
For general information about roles and privilege grants for performing SQL
overview.html | |
snowflake_docs/complete-snowflake-cortex_5_0.txt | label-cortex-llm-cost-considerations) and [ quotas
quotas) .
` _ prompt_or_history _ `
The prompt or conversation history to be used to generate a completion.
If ` _ options _ ` is not present, the prompt given must be a string.
types-semistructured.html | |
snowflake_docs/create-procedure_12_0.txt | Required Parameters ¶
| |
snowflake_docs/lpad_3_0.txt | Arguments ¶
` _ base _ `
This must be a ` VARCHAR ` or ` BINARY ` value.
` _ length_expr _ `
The length should be an expression that evaluates to an integer. It should
specify:
* The number of UTF-8 characters to return if the input is ` VARCHAR ` .
* The number of bytes to return if the input is ` BINARY ... | |
snowflake_docs/match_recognize_17_0.txt | Limitations on Window Functions used in DEFINE and MEASURES ¶
Expressions in the ` DEFINE ` and ` MEASURES ` subclauses can include window
functions. However, there are some limitations on using window functions in
these subclauses. These limitations are shown in the table below:
> Function
>
> |
>
> DEFINE (Runni... | |
snowflake_docs/drop-custom-classifier_9_0.txt | label-security-custom-role) .
For general information about roles and privilege grants for performing SQL
control-overview.html | |
snowflake_docs/referential_constraints_3_0.txt | Usage Notes ¶
* Latency for the view may be up to 120 minutes (2 hours).
* The view only displays objects for which the current role for the session has been granted access privileges.
* The LAST_ALTERED column is updated when the following operations are performed on an object:
* DDL operations.
*... | |
snowflake_docs/grant-privilege_16_0.txt | Classes ¶
To allow an account role to create budgets in a schema, grant the CREATE
SNOWFLAKE.CORE.BUDGET privilege on the schema to the role:
>
> USE ROLE ACCOUNTADMIN;
>
> GRANT CREATE SNOWFLAKE.CORE.BUDGET ON SCHEMA budgets_db.budgets_schema
> TO ROLE budget_admin;
>
>
> Copy
Was this page helpfu... | |
snowflake_docs/undrop-table_2_0.txt | Syntax ¶
UNDROP TABLE <name>
Copy
| |
snowflake_docs/create-security-integration-saml2_5_0.txt | label-encrypt-saml-assertions) and [ sending signed
integration.html | |
snowflake_docs/exception_1_0.txt | EXCEPTION (Snowflake Scripting) ¶
Specifies how to handle exceptions raised in the Snowflake Scripting block.
For more information on exceptions, see [ Handling Exceptions
See also :
| |
snowflake_docs/try_to_binary_4_0.txt | Returns ¶
Returns a value of type BINARY.
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.