id stringlengths 16 145 | text stringlengths 1 179k | title stringclasses 1
value |
|---|---|---|
snowflake_docs/try_parse_json_5_0.txt | Usage Notes ¶
* This function supports an input expression with a maximum size of 8 MB compressed.
* If the input is NULL, the output is also NULL. However, if the input string is ` 'null' ` , it is interpreted as a JSON null value so that the result is not SQL NULL, but a valid VARIANT value containing ` null... | |
snowflake_docs/contains_4_0.txt | Returns ¶
Returns a ` BOOLEAN ` . The value is True if ` _ expr2 _ ` is found inside `
_ expr1 _ ` . Returns NULL if either input expression is NULL. Otherwise,
returns False.
| |
snowflake_docs/reverse_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/replace_7_0.txt | label-manage-bcr-enable-bundle) .
To enable this bundle in your account, execute the following statement:
SELECT SYSTEM$ENABLE_BEHAVIOR_CHANGE_BUNDLE('2024_02');
Copy
| |
snowflake_docs/show-managed-accounts_2_0.txt | Syntax ¶
SHOW MANAGED ACCOUNTS [ LIKE '<pattern>' ]
Copy
| |
snowflake_docs/system_user_task_cancel_ongoing_executions_3_0.txt | Arguments ¶
` _ task_name _ `
Name of the task.
| |
snowflake_docs/operators-subquery_3_0.txt | Syntax ¶
<expr> comparisonOperator { ALL | ANY} ( <query> )
Copy
Where:
>
> comparisonOperator ::=
> { = | != | > | >= | < | <= }
>
>
> Copy
| |
snowflake_docs/asin_5_0.txt | Examples ¶
>
> SELECT ASIN(0), ASIN(0.5), ASIN(1);
>
> ---------+--------------+-------------+
> ASIN(0) | ASIN(0.5) | ASIN(1) |
> ---------+--------------+-------------+
> 0 | 0.5235987756 | 1.570796327 |
> ---------+--------------+-------------+
>
>
> Copy
Was this page h... | |
snowflake_docs/grant-privilege-application-role_4_0.txt | Optional parameters ¶
` ON FUTURE `
Specifies that privileges are granted on new (i.e. future) schema objects of a
specified type rather than existing objects. Future grants can be revoked at
privilege-application-role) with the ON FUTURE keywords; any privileges
granted on existing objects are retained. For more ... | |
snowflake_docs/contract_items_0_0.txt | /
24. Legacy Views
Schema:
| |
snowflake_docs/st_centroid_4_0.txt | Returns ¶
Returns a GEOGRAPHY or GEOMETRY object for the Point that represents geometric
center of the input object.
| |
snowflake_docs/normal_0_0.txt | /
1. Random
5. Controlled Distribution
reference/functions-data-generation) NORMAL
Categories:
| |
snowflake_docs/alter-role_1_0.txt | ALTER ROLE ¶
guide/security-access-control-overview.html | |
snowflake_docs/create-password-policy_13_0.txt | Usage notes ¶
* CREATE OR REPLACE _ <object> _ statements are atomic. That is, when an object is replaced, the old object is deleted and the new object is created in a single transaction.
| |
snowflake_docs/create-failover-group_17_0.txt | label-access-control-overview-privileges) at a minimum:
Privilege
|
Object
|
Notes
---|---|---
CREATE FAILOVER GROUP
|
Account
|
Only the ACCOUNTADMIN role has this privilege by default. The privilege can be
granted to additional roles as needed.
MONITOR
|
Database
|
To add a database to a failover group, the act... | |
snowflake_docs/constraints-properties_1_0.txt | Constraint Properties ¶
| |
snowflake_docs/st_geographyfromwkb_2_0.txt | Well-known_binary) or [ EWKB (extended
geospatial.html | |
snowflake_docs/desc-packages-policy_3_0.txt | Parameters ¶
` _ name _ `
Specifies the identifier for the packages 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/drop-budget_2_0.txt | Syntax ¶
DROP SNOWFLAKE.CORE.BUDGET [ IF EXISTS ] <name>
Copy
| |
snowflake_docs/show-integrations_9_0.txt | Output ¶
The command output provides integration properties and metadata in the
following columns:
Column
|
Description
---|---
` name `
|
Name of the integration
` type `
|
Type of the integration
` category `
|
Category of the integration
` enabled `
|
Current status of the integration, either TRUE (... | |
snowflake_docs/current_transaction_0_0.txt | /
1. General
14. Session
29. Session Object
41. Alert
context) CURRENT_TRANSACTION
Categories:
| |
snowflake_docs/create-image-repository_0_0.txt | /
1. IMAGE REGISTRY AND REPOSITORY
5. COMPUTE POOL
11. SERVICE
18. JOB
container-services) CREATE IMAGE REPOSITORY
| |
snowflake_docs/drop-catalog-integration_1_0.txt | DROP CATALOG INTEGRATION ¶
Available to all accounts.
tables-iceberg-catalog-integration-def) from the account.
See also:
| |
snowflake_docs/h3_coverage_strings_3_0.txt | Arguments ¶
` _ geography_expression _ `
A GEOGRAPHY object.
` _ target_resolution _ `
An INTEGER between 0 and 15 (inclusive) specifying the H3 [ resolution
returned H3 cells.
Specifying any other INTEGER value results in an error.
| |
snowflake_docs/st_pointn_2_0.txt | Syntax ¶
ST_POINTN( <geography_or_geometry_expression> , <index> )
Copy
| |
snowflake_docs/decompress_string_6_0.txt | Examples ¶
This shows how to compress a string and then decompress back to the original
value.
SELECT COMPRESS('Snowflake', 'SNAPPY');
+---------------------------------+
| COMPRESS('SNOWFLAKE', 'SNAPPY') |
|---------------------------------|
| 0920536E6F77666C616B65 |
+-------------... | |
snowflake_docs/current_account_name_1_0.txt | CURRENT_ACCOUNT_NAME ¶
Returns the name of the current account.
identifier.html | |
snowflake_docs/lag_5_0.txt | Examples ¶
Create the table and load the data:
>
> CREATE OR REPLACE TABLE sales(emp_id INTEGER, year INTEGER, revenue
> DECIMAL(10,2));
>
>
> Copy
>
>
> INSERT INTO sales VALUES
> (0, 2010, 1000),
> (0, 2011, 1500),
> (0, 2012, 500),
> (0, 2013, 750);
> INSERT INTO ... | |
snowflake_docs/show-connections_0_0.txt | /
4. Replication
11. Failover/Failback
18. Client Redirect
SHOW CONNECTIONS
| |
snowflake_docs/set_0_0.txt | /
1. Parameters
4. Context
10. Variables
14. Queries
| |
snowflake_docs/st_geohash_5_0.txt | Examples ¶
The following example returns the geohash for a GEOGRAPHY point:
SELECT ST_GEOHASH(
TO_GEOGRAPHY('POINT(-122.306100 37.554162)'))
AS geohash_of_point_a;
Copy
+----------------------+
| GEOHASH_OF_POINT_A |
|----------------------|
| 9q9j8ue2v71y5zzy0s4q |
+-----------... | |
snowflake_docs/chr_3_0.txt | Arguments ¶
` _ input _ `
The Unicode code point for which the character is returned.
| |
snowflake_docs/get_relative_path_2_0.txt | Syntax ¶
GET_RELATIVE_PATH( @<stage_name> , '<absolute_file_path>' )
Copy
| |
snowflake_docs/boolxor_agg_6_1.txt | | False
> | False | False
> |
> | -1 | False | False
> | False | False
> |
> | 1 | False | False
> | True |... | |
snowflake_docs/copy-into-location_17_0.txt | Retaining NULL/empty field data in unloaded files ¶
Retain SQL NULL and empty fields in unloaded files:
>
> -- View the table column values
> SELECT * FROM HOME_SALES;
>
> +------------+-------+-------+-------------+--------+------------+
> | CITY | STATE | ZIP | TYPE | PRICE | SALE... | |
snowflake_docs/is_time_3_0.txt | Examples ¶
Get all ` TIME ` values in a ` VARIANT ` column.
Note
The output format for time values is set using the [ TIME_OUTPUT_FORMAT
is ` HH24:MI:SS ` .
Create and load the table:
>
> create or replace table vardttm (v variant);
>
>
> Copy
>
>
> BEGIN WORK;
> insert into vardttm select to_va... | |
snowflake_docs/hll_import_3_0.txt | Examples ¶
Was this page helpful?
Yes No
Inc. All Rights Reserved .
On this page
1. Syntax
2. Examples
Language : **English** | |
snowflake_docs/alter-application_3_0.txt | Parameters ¶
` _ name _ `
Specifies the identifier for the application being altered. 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.
` SET `
Specifies one (or more) ... | |
snowflake_docs/set_notification_mute_flag_1_0.txt | <budget_name>!SET_NOTIFICATION_MUTE_FLAG ¶
guide/intro-editions) .
This feature is currently not available for [ Trial Accounts
guide/budgets) .
See also:
<budget_name>!GET_NOTIFICATION_INTEGRATION_NAME
| |
snowflake_docs/regr_avgx_5_0.txt | Examples ¶
CREATE OR REPLACE TABLE aggr(k int, v decimal(10,2), v2 decimal(10, 2));
INSERT INTO aggr VALUES(1, 10, NULL);
INSERT INTO aggr VALUES(2, 10, 11), (2, 20, 22), (2, 25, NULL), (2, 30, 35);
Copy
SELECT k, REGR_AVGX(v, v2) FROM aggr GROUP BY k;
---+------------------+
k | regr_avgx(v... | |
snowflake_docs/data-types-text_12_0.txt | String Constants ¶
_Constants_ (also known as _literals_ ) refer to fixed data values. String
constants in Snowflake must always be enclosed between delimiter characters.
Snowflake supports using either of the following to delimit string constants:
* Single quotes .
* Pairs of dollar signs .
| |
snowflake_docs/st_intersection_agg_2_0.txt | Syntax ¶
ST_INTERSECTION_AGG( <geography_column> )
Copy
| |
snowflake_docs/between_3_0.txt | Usage Notes ¶
* ` _ expr _ BETWEEN _ lower_bound _ AND _ upper_bound _ ` is equivalent to ` _ expr _ >= _ lower_bound _ AND _ expr _ <= _ upper_bound _ ` .
* The specified upper boundary must be larger/greater than the lower boundary.
| |
snowflake_docs/regr_slope_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/match_recognize_5_1.txt | her operations should occur in
the sequence of rows to form a valid match. The following operators are
available:
> Operator
>
> |
>
> Meaning
>
> ---|---
>
> ` ... ... ` (space)
>
> |
>
> Concatenation. Specifies that a symbol or operation should follow another
> one. For example, ` S1 S2 ` means that the ... | |
snowflake_docs/data-types-geospatial_35_0.txt | Effects on GEOMETRY Objects ¶
For GEOMETRY objects:
* The following functions return results based on the original invalid shape:
* The following functions validate the shape and fail with an error if the shape is invalid:
| |
snowflake_docs/create-network-policy_7_0.txt | label-security-custom-role) .
For general information about roles and privilege grants for performing SQL
overview.html | |
snowflake_docs/revoke-privilege_1_0.txt | REVOKE _ <privileges> _ ¶
Removes one or more privileges on a securable object from a role or database
role. The privileges that can be revoked are object-specific.
Roles :
The privileges that can be revoked from roles are grouped into the following
categories:
* Global privileges
* Privileges for account objec... | |
snowflake_docs/st_covers_8_0.txt | GEOMETRY Examples ¶
The query below shows several examples of using ST_COVERS. Note how the
examples) ) a LineString on its border.
>
> SELECT ST_COVERS(poly, poly_inside),
> ST_COVERS(poly, poly),
> ST_COVERS(poly, line_on_boundary),
> ST_COVERS(poly, line_inside)
> FROM (... | |
snowflake_docs/drop-database_6_0.txt | Examples ¶
>
> DROP DATABASE mytestdb2;
>
> +---------------------------------+
> | status |
> |---------------------------------|
> | MYTESTDB2 successfully dropped. |
> +---------------------------------+
>
> SHOW DATABASES LIKE 'mytestdb2';
>
>
> +-------... | |
snowflake_docs/rpad_6_0.txt | Collation Details ¶
* Collation applies to ` VARCHAR ` inputs. Collation does not apply if the input data type of the first parameter is ` BINARY ` .
* No impact. Although collation is accepted syntactically, collations have no impact on processing. For example, languages with two-character and three-characte... | |
snowflake_docs/revoke-privilege-application-role_1_0.txt | REVOKE _ <privileges> _ FROM APPLICATION ROLE ¶
Available to all accounts.
Revokes one or more access privileges on a securable schema-level object from
an application role. The privileges that can be revoked are object-specific.
For more details about roles and securable objects, see [ Overview of Access
Variations... | |
snowflake_docs/variance_pop_5_0.txt | Usage Notes ¶
* When passed a VARCHAR expression, this function implicitly casts the input to floating point values. If the cast cannot be performed, an error is returned.
* When this function is called as a window function (i.e. with an OVER clause):
* If the OVER clause contains an ORDER BY subclause, th... | |
snowflake_docs/create-security-integration-scim_7_0.txt | label-security-custom-role) .
For general information about roles and privilege grants for performing SQL
overview.html | |
snowflake_docs/create-procedure_7_0.txt | Python Handler ¶
For in-line stored procedures, use the following syntax:
CREATE [ OR REPLACE ] [ SECURE ] PROCEDURE <name> (
[ <arg_name> <arg_data_type> [ DEFAULT <default_value> ] ] [ , ... ] )
[ COPY GRANTS ]
RETURNS { <result_data_type> [ [ NOT ] NULL ] | TABLE ( [ <col_name> <col_data_t... | |
snowflake_docs/stddev_pop_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/variance_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/skew_4_0.txt | Returns ¶
This function returns a value of type DOUBLE.
| |
snowflake_docs/array_except_5_0.txt | Usage Notes ¶
* When you compare data of the type OBJECT, the objects must be identical to be considered matching. For details, see Examples (in this topic).
* In Snowflake, arrays are multi-sets, not sets. In other words, arrays can contain multiple copies of the same value.
` ARRAY_EXCEPT ` compares array... | |
snowflake_docs/show-databases_3_0.txt | Parameters ¶
` TERSE `
Optionally returns output containing only the following columns:
* ` created_on `
* ` name `
* ` kind `
* ` database_name `
* ` schema_name `
Note that ` kind ` , ` database_name ` , and ` schema_name ` always display
` NULL ` because the columns are not applicable for data... | |
snowflake_docs/bitshiftright_1_0.txt | BITSHIFTRIGHT ¶
Shifts the bits for a numeric expression ` _ n _ ` positions to the right.
Aliases:
BIT_SHIFTRIGHT
See also:
| |
snowflake_docs/create-schema_9_0.txt | label-security-custom-role) .
For general information about roles and privilege grants for performing SQL
overview.html | |
snowflake_docs/undrop-tag_7_0.txt | label-access-control-securable-objects) , see [ Overview of
For additional details on tag DDL and privileges, see [ Managing tags
| |
snowflake_docs/order-by_0_0.txt | /
Categories:
| |
snowflake_docs/as_char-varchar_2_0.txt | Syntax ¶
AS_CHAR( <variant_expr> )
AS_VARCHAR( <variant_expr> )
Copy
| |
snowflake_docs/system_get_iceberg_table_information_6_0.txt | Examples ¶
Generate a snapshot for the Iceberg table ` it1 ` in the schema ` db1.schema1
` :
SELECT SYSTEM$GET_ICEBERG_TABLE_INFORMATION('db1.schema1.it1');
Copy
Output:
+-----------------------------------------------------------------------------------------------------------+
| SYSTEM$GET_ICEBERG_TAB... | |
snowflake_docs/system_get_tag_0_0.txt | /
1. Control
29. Information
90. Query Information
SYSTEM$GET_TAG
Categories:
| |
snowflake_docs/try_to_binary_6_0.txt | Examples ¶
This shows how to use the ` TRY_TO_BINARY ` function when loading hex-encoded
strings into a BINARY column:
> Create and fill a table:
>
>>
>> CREATE TABLE strings (v VARCHAR, hex_encoded_string VARCHAR, b BINARY);
>> INSERT INTO strings (v) VALUES
>> ('01'),
>> ('A B'),
>> ... | |
snowflake_docs/create-application_5_0.txt | label-native-apps-testing-debug-mode)
for the application object being created. Debug mode allows a provider to see
the contents of the application object.
* ` TRUE ` enables debug mode for the installed application.
* ` FAlSE ` disables debug mode for the installed application.
Note
You can only set ` DEBUG_MO... | |
snowflake_docs/with_6_0.txt | label-recursive-common-table-expression-troubleshoot) .
For example, to limit the number of iterations to less than 10:
WITH cte AS (
SELECT ..., 1 as level ...
UNION ALL
SELECT ..., cte.level + 1 as level
FROM cte ...
WHERE ... level < 10
) ...
Copy
| |
snowflake_docs/data-types-structured_23_0.txt | label-object-constant) , you are specifying a semi-
structured ARRAY or OBJECT.
To construct a structured ARRAY or OBJECT, you must explicitly cast the
expression. For example:
SELECT [10, 20, 30]::ARRAY(NUMBER);
Copy
SELECT {
'name': 'abc',
'created_date': '2020-01-18'::DATE
}::OBJECT(
na... | |
snowflake_docs/execute-task_1_0.txt | EXECUTE TASK ¶
Manually triggers an asynchronous single run of a scheduled task (either a
intro.html | |
snowflake_docs/drop-password-policy_9_0.txt | Usage notes ¶
SELECT * from table(information_schema.policy_references(policy_name=>'<string>'));
Copy
| |
snowflake_docs/array_union_agg_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/corr_3_0.txt | Usage Notes ¶
* DISTINCT is not supported for this function.
* When used as a window function:
> * This function does not support:
>
>> * ORDER BY sub-clause in the OVER clause.
>>
>> * Window frames.
| |
snowflake_docs/system_set_span_attributes_1_0.txt | SYSTEM$SET_SPAN_ATTRIBUTES (for Snowflake Scripting) ¶
Sets attribute name and value associated with a span containing trace events.
Use SYSTEM$SET_SPAN_ATTRIBUTES to set the attribute name and value for a span
when using trace events from a handler written in Snowflake Scripting.
For more information, refer to [ Em... | |
snowflake_docs/parse_ip_6_0.txt | Examples ¶
>
> SELECT column1, PARSE_IP(column1, 'INET') FROM
> VALUES('192.168.242.188/24'), ('192.168.243.189/24');
> --------------------+-----------------------------------+
> COLUMN1 | PARSE_IP(COLUMN1, 'INET') |
> --------------------+-----------------------------------|
> ... | |
snowflake_docs/desc-catalog-integration_11_0.txt | Examples ¶
Describe the columns in the integration:
>
> DESC CATALOG INTEGRATION myCatalogInt;
>
>
> Copy
The following shows the output of DESCRIBE CATALOG INTEGRATION for an AWS Glue
catalog integration. The output includes AWS Glue-specific (for example, `
GLUE_AWS_ROLE_ARN ` ) and common catalog integrati... | |
snowflake_docs/in_7_0.txt | Collation Details ¶
Arguments with collation specifications are currently not supported.
| |
snowflake_docs/show-iceberg-tables_2_0.txt | Syntax ¶
SHOW [ TERSE ] [ ICEBERG ] TABLES [ LIKE '<pattern>' ]
[ IN
{
ACCOUNT |
DATABASE |
... | |
snowflake_docs/infer_schema_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/to_json_4_0.txt | Returns ¶
The returned value is of type ` VARCHAR ` .
| |
snowflake_docs/execute-immediate-from_12_0.txt | Stage Errors ¶
Error
|
002003 (02000): SQL compilation error: Stage '<stage_name>' does not exist or not authorized.
---|---
Cause
|
The stage does not exist or you do not have access to the stage.
Solution
|
* Verify the name of the stage and confirm the stage exists.
* Execute the statement using a ro... | |
snowflake_docs/st_intersects_6_0.txt | Usage Notes ¶
* For GEOMETRY objects, the function reports an error if the two input GEOMETRY objects have different SRIDs.
| |
snowflake_docs/create-task_21_0.txt | Stored procedure ¶
Create a task named ` my_copy_task ` that calls a stored procedure to unload
data from the ` mytable ` table to the named ` mystage ` stage (using [ COPY
-- Create a stored procedure that unloads data from a table
-- The COPY statement in the stored procedure unloads data to files in a ... | |
snowflake_docs/element_types_2_0.txt | Columns ¶
Column Name
|
Data Type
|
Description
---|---|---
OBJECT_CATALOG
|
VARCHAR
|
Database that contains the object that uses this ARRAY type.
OBJECT_SCHEMA
|
VARCHAR
|
Schema that contains the object that uses this ARRAY type.
OBJECT_NAME
|
VARCHAR
|
Name of the object that uses this ARRAY type (e.g. n... | |
snowflake_docs/coalesce_1_0.txt | COALESCE ¶
Returns the first non-NULL expression among its arguments, or NULL if all its
arguments are NULL.
| |
snowflake_docs/system_get_aws_sns_iam_policy_1_0.txt | SYSTEM$GET_AWS_SNS_IAM_POLICY ¶
Returns an AWS IAM policy statement that must be added to the Amazon SNS topic
policy in order to grant the Amazon SQS messaging queue created by Snowflake
to subscribe to the topic.
This function is used when automating Snowpipe using SQS notifications for S3
events. To avoid conflic... | |
snowflake_docs/create-catalog-integration_3_0.txt | Syntax ¶
CREATE [ OR REPLACE ] CATALOG INTEGRATION [IF NOT EXISTS]
<name>
CATALOG_SOURCE = { GLUE | OBJECT_STORE }
TABLE_FORMAT = { ICEBERG }
[ catalogParams ]
ENABLED = { TRUE | FALSE }
[ COMMENT = '{string_literal}' ]
Copy
Where:
>
> catalogParams (for AWS Glue)::=
> ... | |
snowflake_docs/to_boolean_1_0.txt | TO_BOOLEAN ¶
Coverts the input text or numeric expression to a Boolean value. For NULL
input, the output is NULL.
See also:
| |
snowflake_docs/snowflake-db-classes_6_1.txt | |
| DETECT_ANOMALIES | 3 | 3 | (INPUT_DATA VARCHAR, TIMESTAMP_COLNAME VARCHAR, TARGET_COLNAME VARCHAR) | NULL | SQL |
| DETECT_ANOMALIES | 4 | ... | |
snowflake_docs/ratio_to_report_4_0.txt | Usage Notes ¶
* RATIO_TO_REPORT is calculated as:
> value of ` _ expr1 _ ` argument for the current row / sum of ` _ expr1 _ `
> argument for the partition
* The ORDER BY sub-clause in the OVER() clause is allowed in this function for syntactic consistency with other window functions, but the ORDER BY does no... | |
snowflake_docs/desc-warehouse_2_0.txt | Syntax ¶
DESC[RIBE] WAREHOUSE <name>
Copy
| |
snowflake_docs/create-procedure_9_0.txt | label-stored-procedure-
scala-return-table) via ` RETURNS 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 <default_value> ] ] [ , ... ] )... | |
snowflake_docs/sqrt_4_0.txt | Examples ¶
SELECT x, sqrt(x) FROM tab;
--------+-------------+
x | sqrt(x) |
--------+-------------+
0 | 0 |
2 | 1.414213562 |
10 | 3.16227766 |
[NULL] | [NULL] |
--------+-------------+
Copy
Was this page helpful?
Yes No
Inc. All Righ... | |
snowflake_docs/into_3_0.txt | Usage Notes ¶
* The SELECT statement must return a single row.
| |
snowflake_docs/create-stage_21_0.txt | label-access-control-overview-privileges) at a minimum:
Privilege
|
Object
|
Notes
---|---|---
USAGE
|
Storage integration
|
Required only if accessing a cloud storage service using a [ storage
CREATE STAGE
|
Schema
|
USAGE
|
File format
|
Required only if referencing a named file format in the stage definition. ... | |
snowflake_docs/h3_latlng_to_cell_1_0.txt | H3_LATLNG_TO_CELL ¶
data-types-geospatial-h3) cell ID for a given latitude, longitude, and
resolution.
See also:
| |
snowflake_docs/show-connections_2_0.txt | Syntax ¶
SHOW CONNECTIONS [ LIKE '<pattern>' ]
Copy
| |
snowflake_docs/transactions_0_0.txt | /
Transactions
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.