id stringlengths 16 145 | text stringlengths 1 179k | title stringclasses 1
value |
|---|---|---|
snowflake_docs/object_keys_2_0.txt | Syntax ¶
OBJECT_KEYS( <object> )
Copy
| |
snowflake_docs/revoke-database-role_4_0.txt | Examples ¶
REVOKE DATABASE ROLE analyst FROM ROLE SYSADMIN;
Copy
Was this page helpful?
Yes No
Inc. All Rights Reserved .
On this page
1. Syntax
2. Parameters
3. Examples
Language : **English** | |
snowflake_docs/external_functions_history_0_0.txt | /
1. Data Loading
4. Data Generation
6. Data Conversion
9. ML-Powered Analysis
11. Object Modeling
13. Semi-Structured Queries
15. Query Results
17. Query Profile
19. User Login
22. Queries
26. Wareho... | |
snowflake_docs/split_0_0.txt | /
1. General Manipulation
34. Case Conversion
38. Regular Expression Matching
48. Other Matching/Comparison
66. Compression/Decompression
70. Encoding/Decoding
81. Cryptographic/Checksum
93. Hash (Non-cryptographic)
96. Co... | |
snowflake_docs/alter-password-policy_7_0.txt | label-custom-password-policies) .
` PASSWORD_HISTORY = _ integer _ `
Specifies the number of the most recent passwords that Snowflake stores. These
stored passwords cannot be repeated when a user updates their password value.
The current password value does not count towards the history.
When you increase the histor... | |
snowflake_docs/booland_agg_2_0.txt | Syntax ¶
**Aggregate function**
BOOLAND_AGG( <expr> )
Copy
**Window function**
BOOLAND_AGG( <expr> ) OVER ( [ PARTITION BY <partition_expr> ] )
Copy
| |
snowflake_docs/commit_5_0.txt | Examples ¶
Begin a transaction, insert some values into a table, and then complete the
transaction by committing it:
>
> SELECT COUNT(*) FROM A1;
>
> ----------+
> COUNT(*) |
> ----------+
> 0 |
> ----------+
>
> BEGIN NAME T3;
>
> SELECT CURRENT_TRANSACTION();
>
> ... | |
snowflake_docs/data-types-structured_53_0.txt | Viewing Information About Structured Types ¶
The following sections describe the views and commands that you can use to
view information about structured types:
* Using the SHOW COLUMNS Command to View Structured Type Information
* Using the DESCRIBE and Other SHOW Commands to View Structured Type Information
... | |
snowflake_docs/show-services_4_0.txt | Output ¶
The command output provides service properties and metadata in the following
columns:
Column
|
Description
---|---
` name `
|
Snowpark Container Services service name.
` database_name `
|
Database in which the service is created.
` schema_name `
|
Schema in which the service is created.
` owner... | |
snowflake_docs/boolxor_1_0.txt | BOOLXOR ¶
Computes the Boolean XOR of two numeric expressions (i.e. one of the
expressions, but not both expressions, is TRUE). In accordance with Boolean
semantics:
* Non-zero values (including negative numbers) are regarded as True.
* Zero values are regarded as False.
As a result, the function returns:
* ... | |
snowflake_docs/create-function_26_0.txt | SQL ¶
` MEMOIZABLE `
Specifies that the function is memoizable.
scalar-functions.html | |
snowflake_docs/sysdate_7_0.txt | Examples ¶
Set the time output format to ` YYYY-MM-DD HH24:MI:SS.FF4 ` , then return
the SYSDATE and CURRENT_TIMESTAMP. Note the difference in the hour field due
to the difference in time zone.
>
> ALTER SESSION SET TIMESTAMP_NTZ_OUTPUT_FORMAT = 'YYYY-MM-DD
> HH24:MI:SS.FF4';
> ALTER SESSION SET TIMESTAMP_... | |
snowflake_docs/show-iceberg-tables_1_0.txt | SHOW ICEBERG TABLES ¶
Available to all accounts.
have access privileges.
The command can be used to list Iceberg tables for the current/specified
database or schema, or across your entire account.
tables) . The output returns Iceberg table metadata and properties, ordered
lexicographically by database, schema, and I... | |
snowflake_docs/bitor_agg_3_0.txt | Arguments ¶
` _ expr1 _ `
The input expression must be an expression that can be evaluated to a number
or converted to a number.
` _ expr2 _ `
This expression is used to group the rows in partitions.
| |
snowflake_docs/create-security-integration-api-auth_5_0.txt | OAuth: JWT Bearer Flow ¶
CREATE SECURITY INTEGRATION <name>
TYPE = API_AUTHENTICATION
AUTH_TYPE = OAUTH2
ENABLED = { TRUE | FALSE }
[ OAUTH_AUTHORIZATION_ENDPOINT = '<string_literal>' ]
[ OAUTH_TOKEN_ENDPOINT = '<string_literal>' ]
[ OAUTH_CLIENT_AUTH_METHOD = CLIENT_SECRET_PO... | |
snowflake_docs/automatic_clustering_history_2_0.txt | Columns ¶
Column Name
|
Data Type
|
Description
---|---|---
START_TIME
|
TIMESTAMP_LTZ
|
Start of the specified time range.
END_TIME
|
TIMESTAMP_LTZ
|
End of the specified time range.
CREDITS_USED
|
NUMBER
|
Number of credits billed for automatic clustering during the START_TIME and
END_TIME window.
NUM_BY... | |
snowflake_docs/activate_5_0.txt | Usage Notes ¶
* Once you activate the account budget, you cannot deactivate it.
* Once activated, you must set the spending limit in order for the budget to start tracking credit usage.
* Once activated, you must set the notification integration and email address(es) to receive notifications. No notification... | |
snowflake_docs/kurtosis_6_0.txt | Examples ¶
Create a table and load the data:
>
> create or replace table aggr(k int, v decimal(10,2), v2 decimal(10, 2));
>
> insert into aggr values
> (1, 10, null),
> (2, 10, 12),
> (2, 20, 22),
> (2, 25, null),
> (2, 30, 35);
>
>
> Copy
Display the data:
>
> ... | |
snowflake_docs/array_construct_2_0.txt | Syntax ¶
ARRAY_CONSTRUCT( [ <expr1> ] [ , <expr2> [ , ... ] ] )
Copy
| |
snowflake_docs/show-roles_3_0.txt | Parameters ¶
` TERSE `
Returns only a subset of columns:
` is_default `
Specifies whether the role used to run the command is the user’s default role.
` is_current `
Specifies whether the role used to run the command is the user’s current role.
` is_inherited `
Specifies whether the role used to run the command ... | |
snowflake_docs/alter-table_1_0.txt | ALTER TABLE ¶
Modifies the properties, columns, or constraints for an existing table.
See also:
| |
snowflake_docs/create-function_27_0.txt | label-udf-sql-scalar-memoizable) .
| |
snowflake_docs/sentiment-snowflake-cortex_0_0.txt | /
1. General Manipulation
34. Case Conversion
38. Regular Expression Matching
48. Other Matching/Comparison
66. Compression/Decompression
70. Encoding/Decoding
81. Cryptographic/Checksum
93. Hash (Non-cryptographic)
96. Co... | |
snowflake_docs/alter-external-table_8_0.txt | label-access-control-securable-objects) , see [ Overview of
| |
snowflake_docs/with_3_0.txt | Syntax ¶
Subquery:
[ WITH
<cte_name1> [ ( <cte_column_list> ) ] AS ( SELECT ... )
[ , <cte_name2> [ ( <cte_column_list> ) ] AS ( SELECT ... ) ]
[ , <cte_nameN> [ ( <cte_column_list> ) ] AS ( SELECT ... ) ]
]
SELECT ...
Copy
Recursive CTE:
[ WITH [ RECURSIVE ]
<c... | |
snowflake_docs/create-aggregation-policy_2_0.txt | label-aggregation-policy-ddl)
| |
snowflake_docs/functions-regexp_12_0.txt | Example of Using Backreferences in a Single-Quoted String Constant ¶
If you use a backreference (e.g. ` \1 ` ) in a string literal, you must
escape the backslash that is a part of that backreference. For example, to
specify the backreference ` \1 ` in a replacement string literal of [
The following example uses ... | |
snowflake_docs/merge_8_0.txt | Nondeterministic Results for UPDATE and DELETE ¶
When a merge joins a row in the target table against multiple rows in the
source, the following join conditions produce nondeterministic results (i.e.
the system is unable to determine the source value to use to update or delete
the target row):
* A target row is se... | |
snowflake_docs/remove_0_0.txt | /
| |
snowflake_docs/create-streamlit_5_0.txt | Usage Notes ¶
* All files in the directory specified by ` ROOT_LOCATION ` are available to the Streamlit runtime. This includes the Python source file, ` environment.yml ` and media files.
* When you clone a schema or database containing a Streamlit object, the Streamlit object is not cloned.
* To specify ... | |
snowflake_docs/system_task_runtime_info_3_0.txt | Arguments ¶
` ' _ arg_name _ ' `
Specifies the type of information to return. You can specify one of the
following values:
Value
|
Description
---|---
` 'CURRENT_TASK_NAME' `
|
Returns the name of the current task.
` 'CURRENT_ROOT_TASK_NAME' `
|
Returns the name of the root task in the current task graph.... | |
snowflake_docs/st_distance_6_0.txt | Usage Notes ¶
* Returns NULL if one or more input points are NULL.
* For GEOMETRY objects, the function reports an error if the two input GEOMETRY objects have different SRIDs.
| |
snowflake_docs/create-external-table_11_2.txt | NCLOSED_FIELD `
value is ` \\ ` )
` EMPTY_FIELD_AS_NULL = TRUE | FALSE `
Specifies whether to return SQL NULL for empty fields in an input file, which
are represented by two successive delimiters (e.g. ` ,, ` ).
If set to ` FALSE ` , Snowflake attempts to cast an empty field to the
corresponding column type. A... | |
snowflake_docs/data-types-structured_56_0.txt | Viewing Information About the Structured Types Used in a Database ¶
For columns of structured types, the INFORMATION_SCHEMA [ COLUMNS View
the column (ARRAY, OBJECT, or MAP).
For example, the ` data_type ` column just contains “ARRAY”, “OBJECT”, or
“MAP”. The column does not include the types of the elements, keys,... | |
snowflake_docs/result_scan_9_0.txt | Examples Using a Stored Procedure ¶
Stored procedure calls return a value. However, this value cannot be processed
directly because you cannot embed a stored procedure call in another
statement. To work around this limitation, you can use ` RESULT_SCAN ` to
process the value returned by a stored procedure. A simpli... | |
snowflake_docs/st_covers_6_0.txt | Examples ¶
| |
snowflake_docs/loop_4_0.txt | Examples ¶
This loop inserts predictable test data into a table:
CREATE TABLE dummy_data (ID INTEGER);
CREATE PROCEDURE break_out_of_loop()
RETURNS INTEGER
LANGUAGE SQL
AS
$$
DECLARE
counter INTEGER;
BEGIN
counter := 0;
LOOP
... | |
snowflake_docs/database_refresh_progress_3_0.txt | Arguments ¶
` _ secondary_db_name _ `
Name of the secondary database. This argument is optional if the secondary
database is the active database in the current session.
Note that the entire name must be enclosed in single quotes.
` _ query_id _ `
ID of the database refresh query. The query ID can be obtained from ... | |
snowflake_docs/tag_references_6_0.txt | Output ¶
The function returns the following columns:
Column
|
Data Type
|
Description
---|---|---
TAG_DATABASE
|
TEXT
|
The database in which the tag is set.
TAG_SCHEMA
|
TEXT
|
The schema in which the tag is set.
TAG_NAME
|
TEXT
|
The name of the tag. This is the ` key ` in the ` key = 'value' ` pair of... | |
snowflake_docs/hll_combine_4_0.txt | Usage Notes ¶
* ` DISTINCT ` is supported syntactically, but has no effect.
* The output of this function is not fully deterministic. Running this function on the same inputs might return different results at different times. The differences are typically small and are consistent with the fact that the HLL_* f... | |
snowflake_docs/to_geography_3_0.txt | Arguments ¶
**Required:**
` _ varchar_expression _ `
The argument must be a string expression that represents a valid geometric
object in one of the following formats:
* WKT (well-known text).
* WKB (well-known binary) in hexadecimal format (without a leading ` 0x ` ).
* EWKT (extended well-known text).
... | |
snowflake_docs/undrop-database_5_0.txt | Examples ¶
Restore the most recent version of a dropped database (this example builds on
>
> UNDROP DATABASE mytestdb2;
>
> +-------------------------------------------+
> | status |
> |-------------------------------------------|
> | Database MYTESTDB2 succes... | |
snowflake_docs/custom_classifier_1_0.txt | CUSTOM_CLASSIFIER ¶
_Fully qualified name:_ SNOWFLAKE.CORE.CUSTOM_CLASSIFIER
Available to all Snowflake accounts that are [ Enterprise Edition
Custom Classification requires Enterprise Edition (or higher). To inquire
about upgrading, please contact [ Snowflake Support
Snowflake-Lodge) .
engineers to extend their dat... | |
snowflake_docs/show-services_10_0.txt | label-access-control-securable-objects) , see [ Overview of
| |
snowflake_docs/functions-context_1_0.txt | Context Functions ¶
This family of functions allows for the gathering of information about the
context in which the statement is executed. These functions are evaluated at
most once per statement.
| |
snowflake_docs/show-global-accounts_7_0.txt | Examples ¶
Show all the global accounts whose name starts with ` myaccount ` :
SHOW GLOBAL 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/create-security-integration-oauth-external_2_0.txt | Syntax ¶
CREATE [ OR REPLACE ] SECURITY INTEGRATION [IF NOT EXISTS]
<name>
TYPE = EXTERNAL_OAUTH
ENABLED = { TRUE | FALSE }
EXTERNAL_OAUTH_TYPE = { OKTA | AZURE | PING_FEDERATE | CUSTOM }
EXTERNAL_OAUTH_ISSUER = '<string_literal>'
EXTERNAL_OAUTH_TOKEN_USER_MAPPING_CLAIM = { '<... | |
snowflake_docs/between_0_0.txt | /
reference/expressions-conditional) [NOT] BETWEEN
Categories:
| |
snowflake_docs/select_20_0.txt | Selecting All Columns With Names That Match a Pattern and Renaming a
Column ¶
This example shows how to select all columns in ` employee_table ` with names
that contain ` id ` and rename the ` department_id ` column:
SELECT * ILIKE '%id%' RENAME department_id AS department FROM employee_table;
Copy
+-----... | |
snowflake_docs/current_region_3_0.txt | Arguments ¶
None.
| |
snowflake_docs/drop-user_1_0.txt | DROP USER ¶
Removes the specified user from the system.
See also:
| |
snowflake_docs/identifiers-syntax_4_0.txt | ` , ` $ ` , ` % ` , ` ^ ` , ` & ` , ` * ` , etc.)
* Extended ASCII and non-ASCII characters
* Blank spaces
For example:
>
> "MyIdentifier"
> "my.identifier"
> "my identifier"
> "My 'Identifier'"
> "3rd_identifier"
> "$Identifier"
> "идентификатор"
>
>
> Copy
Important
If an ob... | |
snowflake_docs/functions-all_30_0.txt | label-data-types-geography) object.
|
|
Returns the length of the perimeter of the polygon(s) in a [ GEOGRAPHY
|
|
Returns a Point at a specified index in a LineString.
|
|
object that has its SRID (spatial reference system identifier) set to the
specified value.
|
|
geometry) object that represents a Line or Polygon, ... | |
snowflake_docs/drop-application-package_1_0.txt | DROP APPLICATION PACKAGE ¶
Available
This feature is not supported on Google Cloud Platform.
Removes an application package from the system in the Native Apps Framework.
See also:
| |
snowflake_docs/create-tag_2_0.txt | Syntax ¶
CREATE [ OR REPLACE ] TAG [ IF NOT EXISTS ] <name> [ COMMENT = '<string_literal>' ]
CREATE [ OR REPLACE ] TAG [ IF NOT EXISTS ] <name>
[ ALLOWED_VALUES '<val_1>' [ , '<val_2>' [ , ... ] ] ]
Copy
| |
snowflake_docs/desc-iceberg-table_2_0.txt | Syntax ¶
DESC[RIBE] [ ICEBERG ] TABLE <name> [ TYPE = { COLUMNS | STAGE } ]
Copy
| |
snowflake_docs/constraints-drop_1_0.txt | Dropping Constraints ¶
* ALTER TABLE … DROP CONSTRAINT … explicitly drops the specified constraint. Similar to modifying constraints, the constraint can be identified by the constraint name or column definition along with the constraint type. For a primary key, they can also be identified using the PRIMARY KEY key... | |
snowflake_docs/alter-session-policy_6_0.txt | label-access-control-overview-privileges) at a minimum:
Privilege
|
Object
|
Notes
---|---|---
OWNERSHIP
|
Session 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 GRANT... | |
snowflake_docs/forecast_3_0.txt | Syntax ¶
CREATE [ OR REPLACE ] SNOWFLAKE.ML.FORECAST [ IF NOT EXISTS ] <name>(
INPUT_DATA => <input_data>,
[ SERIES_COLNAME => '<series_colname>', ]
TIMESTAMP_COLNAME => '<timestamp_colname>',
TARGET_COLNAME => '<target_colname>',
[ CONFIG_OBJECT => <config_object> ]
)
[ [ W... | |
snowflake_docs/drop-integration_2_0.txt | Syntax ¶
DROP [ { API | CATALOG | EXTERNAL ACCESS | NOTIFICATION | SECURITY | STORAGE } ] INTEGRATION [ IF EXISTS ] <name>
Copy
| |
snowflake_docs/desc-aggregation-policy_4_0.txt | Parameters ¶
` _ name _ `
Specifies the identifier for the aggregation policy to describe.
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.
.
| |
snowflake_docs/regr_intercept_1_0.txt | REGR_INTERCEPT ¶
Returns the intercept of the univariate linear regression line for non-null
pairs in a group. It is computed for non-null pairs using the following
formula:
> ` AVG(y)-REGR_SLOPE(y,x)*AVG(x) `
Where ` x ` is the independent variable and ` y ` is the dependent variable.
| |
snowflake_docs/regr_avgy_1_0.txt | REGR_AVGY ¶
Returns the average of the dependent variable for non-null pairs in a group,
where ` x ` is the independent variable and ` y ` is the dependent variable.
| |
snowflake_docs/map_insert_2_0.txt | Syntax ¶
MAP_INSERT( <map> , <key> , <value> [ , <updateFlag> ] )
Copy
| |
snowflake_docs/system_generate_scim_access_token_4_0.txt | Usage notes ¶
| |
snowflake_docs/is_database_role_in_session_2_0.txt | Syntax ¶
**Literal — specify a database role directly:**
IS_DATABASE_ROLE_IN_SESSION( '<string_literal>' )
Copy
**Nonliteral — specify a column:**
>
> IS_DATABASE_ROLE_IN_SESSION( <column_name> )
>
>
> Copy
| |
snowflake_docs/system_external_table_pipe_status_1_0.txt | SYSTEM$EXTERNAL_TABLE_PIPE_STATUS ¶
Retrieves a JSON representation of the current refresh status for the internal
(hidden) pipe object associated with an external table.
Automatically refreshing the metadata for an external table relies internally
on Snowpipe, which receives event notifications when changes occur i... | |
snowflake_docs/st_x_3_0.txt | Arguments ¶
` _ geography_or_geometry_expression _ `
The argument must be an expression of the type GEOGRAPHY or GEOMETRY and must
contain a Point.
| |
snowflake_docs/commands-account_5_0.txt | Replication, Failover, and Failback ¶
Was this page helpful?
Yes No
Inc. All Rights Reserved .
On this page
1. Account Parameters and Functions
2. Managed Accounts
3. Organization
4. Replication, Failover, and Failback
Language : **English** | |
snowflake_docs/drop-network-policy_2_0.txt | Syntax ¶
DROP NETWORK POLICY [ IF EXISTS ] <name>
Copy
| |
snowflake_docs/show-warehouses_0_0.txt | /
1. Virtual Warehouses
8. Resource Monitors
reference/commands-warehouse) SHOW WAREHOUSES
| |
snowflake_docs/show-password-policies_9_0.txt | Usage notes ¶
* The command does not require a running warehouse to execute.
* The value for ` LIMIT _ rows _ ` cannot exceed ` 10000 ` . If ` LIMIT _ rows _ ` is omitted, the command results in an error if the result set is larger than 10K rows.
To view results for which more than 10K records exist, eith... | |
snowflake_docs/to_xml_4_0.txt | Returns ¶
The data type of the returned value is VARCHAR.
| |
snowflake_docs/get_4_0.txt | Required parameters ¶
` internalStage `
Specifies the location in Snowflake from which to download the files:
> ` @[ _ namespace _ .] _ int_stage_name _ [/ _ path _ ] `
>
> |
>
> Files are downloaded from the specified named internal stage.
>
> ---|---
>
> ` @[ _ namespace _ .]% _ table_name _ [/... | |
snowflake_docs/as_object_5_0.txt | Examples ¶
This shows how to use the function:
> Create a table and data:
>
>>
>> CREATE TABLE multiple_types (
>> array1 VARIANT,
>> array2 VARIANT,
>> boolean1 VARIANT,
>> char1 VARIANT,
>> varchar1 VARIANT,
>> decimal1 VARIANT,
>> double1 VARIANT,
>> ... | |
snowflake_docs/date-time-examples_9_0.txt | Retrieving Date and Time Parts ¶
Get various date and time parts for the current date and time using the [
>
> -- Current day of the month
> SELECT DATE_PART(day, current_timestamp());
>
> -- Current year
> SELECT DATE_PART(year, current_timestamp());
>
> -- Current month
> SELECT DATE_PA... | |
snowflake_docs/alter-materialized-view_8_0.txt | Usage Notes ¶
* 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/group-by_4_0.txt | Examples ¶
The following sections provide examples of using the GROUP BY clause:
* Group By One Column
* Group By Multiple Columns
* Group By All Columns
* Demonstrate Precedence When a Column Name and an Alias Match
Note that the examples in each section use the data that you set up in
Setting Up the Da... | |
snowflake_docs/drop-stream_3_0.txt | Parameters ¶
` _ name _ `
Specifies the identifier for the stream to drop. If the identifier contains
spaces, special characters, or mixed-case characters, the entire string must
be enclosed in double quotes. Identifiers enclosed in double quotes are also
case-sensitive (e.g. ` "My Object" ` ).
If the stream iden... | |
snowflake_docs/array_remove_1_0.txt | ARRAY_REMOVE ¶
array) , returns an ARRAY with elements of the specified value removed.
For example, ` ARRAY_REMOVE([2, 5, 7, 5, 1], 5) ` returns an ARRAY with
the elements equal to 5 removed ( ` [2, 7, 1] ` ).
| |
snowflake_docs/drop-file-format_2_0.txt | Syntax ¶
DROP FILE FORMAT [ IF EXISTS ] <name>
Copy
| |
snowflake_docs/show-roles_4_0.txt | Usage notes ¶
* The command does not require a running warehouse to execute.
* If you specify ` CLASS ` , only the following columns are returned:
| created_on | name | comment |
| |
snowflake_docs/md5_binary_6_0.txt | Examples ¶
The example below shows a simple example of using the function. Note that
although the output is a 16-byte binary string, by default SNOWSQL displays
binary values as a series of hexadecimal digits, so the output below appears
as 32 hexadecimal digits, not as 16 one-byte characters.
>
> SELECT md5_bin... | |
snowflake_docs/constraints-alter_1_0.txt | Modifying Constraints ¶
Once a constraint is created:
* The constraint can be renamed.
* Some properties can be modified, e.g. RELY.
* Some properties cannot be modified, e.g. such as DEFERRABLE. To modify these properties, the constraint must be dropped and recreated.
* The column definition for a constr... | |
snowflake_docs/st_contains_6_0.txt | Examples ¶
| |
snowflake_docs/drop-procedure_4_0.txt | Examples ¶
>
> DROP PROCEDURE add_accounting_user(varchar);
>
> -------------------------------------------+
> status |
> -------------------------------------------+
> ADD_ACCOUNTING_USER successfully dropped. |
> ---------------------------------------... | |
snowflake_docs/data-types-semistructured_21_0.txt | Example of Inserting an ARRAY ¶
To insert ARRAY data directly, use IIS ( ` INSERT INTO ... SELECT ` ).
function to construct the ARRAY that it inserts.
>
> INSERT INTO array_example (array_column)
> SELECT ARRAY_CONSTRUCT(12, 'twelve', NULL);
>
>
> Copy
The following code uses an ARRAY constant t... | |
snowflake_docs/drop-user_2_0.txt | Syntax ¶
DROP USER [ IF EXISTS ] <name>
Copy
| |
snowflake_docs/create-sequence_6_0.txt | Access Control Requirements ¶
access-control-overview-roles) used to execute this SQL command must have the
overview.html | |
snowflake_docs/create-function_1_0.txt | CREATE FUNCTION ¶
overview) . The function can return either scalar results (as a UDF) or
tabular results (as a UDTF).
When you create a UDF, you specify a handler whose code is written in one of
the supported languages. Depending on the handler’s language, you can either
include the handler source code in-line with... | |
snowflake_docs/square_2_0.txt | Syntax ¶
SQUARE(expr)
Copy
| |
snowflake_docs/drop-aggregation-policy_3_0.txt | Syntax ¶
DROP AGGREGATION POLICY <name>
Copy
| |
snowflake_docs/create-database_7_0.txt | Access Control Requirements ¶
access-control-overview-roles) used to execute this SQL command must have the
overview.html | |
snowflake_docs/pi_3_0.txt | Examples ¶
>
> SELECT PI();
> -------------+
> PI() |
> -------------+
> 3.141592654 |
> -------------+
>
>
> Copy
Was this page helpful?
Yes No
Inc. All Rights Reserved .
On this page
1. Syntax
2. Examples
Language : **English** | |
snowflake_docs/show-applications_0_0.txt | /
1. APPLICATION
7. APPLICATION PACKAGE
12. APPLICATION ROLE
19. Additional Commands
SHOW APPLICATIONS
| |
snowflake_docs/undrop_2_0.txt | Syntax ¶
UNDROP <object_type> <identifier>
Copy
For specific syntax, usage notes, and examples, see:
**Organization Objects:**
**Account Objects:**
>
>
**Database Objects:**
>
>
>
>
>
>
| |
snowflake_docs/system_start_oauth_flow_4_0.txt | Usage Notes ¶
Use this function to begin a flow that results in an OAuth refresh token added
to the secret you pass to this function as an argument.
As an intermediate step, this function returns an authorization URL you can in
a browser to complete the OAuth consent process.
After executing this function and using ... | |
snowflake_docs/operators-comparison_1_0.txt | Comparison Operators ¶
Comparison operators are used to test the equality of two input expressions.
Operator
|
Syntax
|
Description
---|---|---
` = `
|
` a = b `
|
` a ` is equal to ` b ` .
` != `
|
` a != b `
|
` a ` is not equal to ` b ` .
` <> `
|
` a <> b `
|
` a ` is not equal to ` b ` .... | |
snowflake_docs/is_timestamp_3_0.txt | Examples ¶
Get all timestamp_ltz values in a variable column, output using the timezone
specified for the session.
Note
The output format for timestamp_ltz values is set using the [
format) parameter. If not specified, the default is to use the [
parameter setting. The default setting for this parameter is ` YYYY-MM... | |
snowflake_docs/contract_items_2_0.txt | Columns ¶
Column Name
|
Data Type
|
Description
---|---|---
ORGANIZATION_NAME
|
VARCHAR
|
Name of the organization.
CONTRACT_NUMBER
|
VARCHAR
|
Snowflake contract number for the organization.
START_DATE
|
DATE
|
The start date for the Snowflake contract or the date the CONTRACT_ITEM goes
into effect for the ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.