id stringlengths 16 145 | text stringlengths 1 179k | title stringclasses 1
value |
|---|---|---|
snowflake_docs/timestampadd_7_0.txt | Examples ¶
Add years to a date:
>
> SELECT TO_DATE('2013-05-08') AS v1, DATEADD(year, 2,
> TO_DATE('2013-05-08')) AS v;
>
>
> Copy
>
> Output:
>
>
> +------------+------------+
> | V1 | V |
> |------------+------------|
> | 2013-05-08 | 2015-05-08 |
> +------------+----... | |
snowflake_docs/lower_2_0.txt | Syntax ¶
LOWER( <expr> )
Copy
| |
snowflake_docs/current_role_type_3_0.txt | Arguments ¶
None.
| |
snowflake_docs/create-task_5_0.txt | Optional parameters ¶
` WAREHOUSE = _ string _ ` or . `
USER_TASK_MANAGED_INITIAL_WAREHOUSE_SIZE = _ string _ `
> ` WAREHOUSE = _ string _ `
>
>
> Specifies the virtual warehouse that provides compute resources for task
> runs.
>
> Omit this parameter to use serverless compute resources for runs of this... | |
snowflake_docs/array_position_1_0.txt | ARRAY_POSITION ¶
Returns the index of the first occurrence of an element in an array.
| |
snowflake_docs/sin_0_0.txt | /
1. Arithmetic
4. Rounding and Truncation
13. Exponent and Root
21. Logarithmic
24. Trigonometric
42. Other
numeric) SIN
Categories:
| |
snowflake_docs/alter-role_4_0.txt | Parameters ¶
` _ name _ `
Specifies the identifier for the role to alter. 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.
` RENAME TO _ new_name _ `
Specifies the new identifier for the ro... | |
snowflake_docs/get_notification_integration_name_1_0.txt | <budget_name>!GET_NOTIFICATION_INTEGRATION_NAME ¶
guide/intro-editions) .
This feature is currently not available for [ Trial Accounts
guide/budgets) .
See also:
| |
snowflake_docs/log_5_0.txt | Usage Notes ¶
* If ` _ base _ ` is 1 or less than or equal to 0, an error is returned.
* If ` _ expr _ ` is less than or equal to 0, an error is returned.
| |
snowflake_docs/show-managed-accounts_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/alter-secret_8_0.txt | Access control requirements ¶
access-control-overview-roles) used to execute this SQL command must have the
overview.html | |
snowflake_docs/repeat_3_0.txt | Arguments ¶
` _ input _ `
The input string from which the output string is built.
` _ n _ `
The number of times the input string should be repeated. The minimum valid
number is 0 (which results in an empty string).
| |
snowflake_docs/raise_3_0.txt | label-snowscript-exception-raising-same-handled) .
| |
snowflake_docs/listing-access-history_3_0.txt | Usage Notes ¶
* This view does not display listings that include an application package as the data product.
* Latency for the view may be up to 2 days.
* The data is retained for 365 days (1 year).
| |
snowflake_docs/date_trunc_3_0.txt | Returns ¶
The returned value is the same type as the input value.
For example, if the input value is a ` TIMESTAMP ` , then the returned value
is a ` TIMESTAMP ` .
| |
snowflake_docs/nvl2_2_0.txt | Syntax ¶
NVL2( <expr1> , <expr2> , <expr3> )
Copy
| |
snowflake_docs/bind-variables_2_0.txt | Overview ¶
With bind variables, you replace literals in SQL statements with placeholders.
For example, the following SQL statement uses literals for the inserted
values:
>
> INSERT INTO t (c1, c2) VALUES (1, 'Test string');
>
>
> Copy
The following SQL statement uses placeholders for the inserted values:
>
> ... | |
snowflake_docs/operators-arithmetic_8_0.txt | Addition and Subtraction ¶
For addition or subtraction:
* The leading digits for the output is the largest number of leading digits of the inputs plus 1 (to preserve carried values).
* The scale for the output is the largest scale of the inputs.
In other words, assuming an addition or subtraction operation has... | |
snowflake_docs/services_2_0.txt | Columns ¶
Column Name
|
Data Type
|
Description
---|---|---
SERVICE_CATALOG
|
TEXT
|
Database that the service belongs to.
SERVICE_SCHEMA
|
TEXT
|
Schema that the service belongs to.
SERVICE_NAME
|
TEXT
|
Name of the service.
SERVICE_OWNER
|
TEXT
|
Name of the role that owns the service. App instance name ... | |
snowflake_docs/transactions_12_0.txt | Stored Procedures and Transactions ¶
In general, the rules described in the previous sections also apply to stored
procedures. This section provides additional information specific to stored
procedures.
A transaction can be inside a stored procedure, or a stored procedure can be
inside a transaction; however, a tran... | |
snowflake_docs/serverless_task_history_6_0.txt | Output ¶
The function returns the following 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.
TASK_NAME
|
TEXT
|
Name of the task.
CREDITS_USED
|
TEXT
|
Number of credits bil... | |
snowflake_docs/cosh_1_0.txt | COSH ¶
Computes the hyperbolic cosine of its argument.
| |
snowflake_docs/array_slice_5_0.txt | Usage Notes ¶
* The output includes elements up to, but not including the element specified by the parameter ` _ to _ ` .
* If the array is NULL, the result is NULL.
* If either ` _ from _ ` or ` _ to _ ` is NULL, the result is NULL.
* If either ` _ from _ ` or ` _ to _ ` is negative, it is relativ... | |
snowflake_docs/copy-into-table_11_0.txt | TYPE = ORC ¶
` TRIM_SPACE = TRUE | FALSE `
Boolean that specifies whether to remove leading and trailing white space from
strings.
For example, if your external database software encloses fields in quotes, but
inserts a leading space, Snowflake reads the leading space rather than the
opening quotation character... | |
snowflake_docs/system_get_job_logs_3_0.txt | Syntax ¶
SYSTEM$GET_JOB_LOGS( <job_uuid>, <container_name> [ , <number_of_most_recent_lines> ] )
Copy
| |
snowflake_docs/object_privileges_3_0.txt | Usage notes ¶
* The view only displays objects for which the current role for the session has been granted access privileges.
Was this page helpful?
Yes No
Inc. All Rights Reserved .
On this page
1. Columns
2. Usage notes
Language : **English** | |
snowflake_docs/haversine_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) HAVERSINE
Categories:
| |
snowflake_docs/strtok_to_array_0_0.txt | /
1. JSON and XML Parsing
9. Array/Object Creation and Manipulation
43. Map Creation and Manipulation
51. Extraction
58. Conversion/Casting
82. Type Predicates
1. General Manipulation
34. Case Conversion
38. Regular Expres... | |
snowflake_docs/add_regex_6_0.txt | Output ¶
Returns a status message indicating the association of the category with the
custom classifier in this format: ` _ classifier_name _ : _ category_name _
` .
| |
snowflake_docs/data-types-structured_34_0.txt | Comparing Structured Objects With Semi-Structured Objects ¶
You cannot compare a structured ARRAY, structured OBJECT, or MAP with a semi-
structured ARRAY, OBJECT, or VARIANT.
| |
snowflake_docs/alter-table-event-table_9_0.txt | label-security-row-policy-refs) .
>
> ALTER TABLE t1
> ADD ROW ACCESS POLICY rap_t1 ON (empl_id);
>
>
> Copy
The following example adds a row access policy while specifying two columns in
a single event table.
>
> ALTER TABLE t1
> ADD ROW ACCESS POLICY rap_test2 ON (cost, item);
>
>
> Copy
The f... | |
snowflake_docs/create-row-access-policy_3_0.txt | Required parameters ¶
` _ name _ `
Identifier for the row access 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 enclo... | |
snowflake_docs/commit_4_0.txt | Usage Notes ¶
begin;
insert into table1 ...;
commit;
commit; -- Ignored!
Copy
The rules can be more complex if you are using [ autonomous scoped
stored-procedures-and-transactions) .
| |
snowflake_docs/listagg_13_0.txt | 000000521, Clerk | |
snowflake_docs/h3_latlng_to_cell_string_6_0.txt | Examples ¶
The following example returns the hexadecimal H3 cell ID for the Brandenburg
Gate at resolution 8.
SELECT H3_LATLNG_TO_CELL_STRING(52.516262, 13.377704, 8);
Copy
+---------------------------------------------------+
| H3_LATLNG_TO_CELL_STRING(52.516262, 13.377704, 8) |
|-------------------... | |
snowflake_docs/create-api-integration_13_0.txt | label-access-control-overview-privileges) at a minimum:
Privilege
|
Object
|
Notes
---|---|---
CREATE INTEGRATION
|
Account
|
Only the ACCOUNTADMIN 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 specified set of pri... | |
snowflake_docs/first_value_2_0.txt | Syntax ¶
FIRST_VALUE( <expr> ) [ { IGNORE | RESPECT } NULLS ]
OVER ( [ PARTITION BY <expr1> ] ORDER BY <expr2> [ { ASC | DESC } ] [ <window_frame> ] )
Copy
For details about ` _ window_frame _ ` syntax, see [ Window Frame Syntax and
| |
snowflake_docs/create-compute-pool_6_0.txt | Access control requirements ¶
access-control-overview-roles) used to execute this SQL command must have the
overview.html | |
snowflake_docs/ilike_2_0.txt | Syntax ¶
<subject> [ NOT ] ILIKE <pattern> [ ESCAPE <escape> ]
ILIKE( <subject> , <pattern> [ , <escape> ] )
Copy
| |
snowflake_docs/create-stage_28_0.txt | Internal stages ¶
Create an internal stage with the default file format type ( ` CSV ` ):
* All the corresponding default CSV file format options are used.
CREATE STAGE my_int_stage
COPY_OPTIONS = (ON_ERROR='skip_file');
Copy
Similar to the previous example, but specify server-side encryption for the
s... | |
snowflake_docs/booland_agg_3_0.txt | Arguments ¶
` _ expr _ `
The input expression must be an expression that can be evaluated to a boolean
or converted to a boolean.
` _ partition_expr _ `
This column or expression specifies how to separate the input into partitions
(sub-windows).
| |
snowflake_docs/commands-security_8_0.txt | Secret ¶
Was this page helpful?
Yes No
Inc. All Rights Reserved .
On this page
1. Authentication policy
2. Network policy
3. Network rule
4. Packages policy
5. Password policy
6. Session policy
7. Secret
Language : **English** | |
snowflake_docs/system_task_runtime_info_5_0.txt | Examples ¶
Use CURRENT_TASK_GRAPH_RUN_GROUP_ID with CURRENT_ROOT_TASK_NAME for debugging
and creating a unique output directory or file:
>
> CREATE OR REPLACE TASK my_task ...
> AS
> ...
>
> -- Inside Python UDF
>
> query_result = session.sql("""select
> SYSTEM$TASK_RUNTIM... | |
snowflake_docs/alter-dynamic-table_2_0.txt | Syntax ¶
ALTER DYNAMIC TABLE <name> { SUSPEND | RESUME }
ALTER DYNAMIC TABLE <name> REFRESH
ALTER DYNAMIC TABLE <name> SET
[ TARGET_LAG = { '<num> { seconds | minutes | hours | days }' | DOWNSTREAM } ]
[ WAREHOUSE = <warehouse_name> ]
Copy
| |
snowflake_docs/regexp_substr_6_0.txt | Usage Notes ¶
For additional information on using regular expressions, see [ String
| |
snowflake_docs/create-dynamic-table_1_0.txt | CREATE DYNAMIC TABLE ¶
Available to accounts.
a specified query.
See also:
| |
snowflake_docs/functions_1_0.txt | FUNCTIONS View ¶
This Account Usage view displays a row for each user-defined function (UDF)
defined in the account.
For more information about UDFs, see [ User-Defined Functions Overview
| |
snowflake_docs/desc-transaction_6_0.txt | Examples ¶
DESC TRANSACTION 1651535571261000000;
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/commands-user-role_4_0.txt | Account-level role management ¶
| |
snowflake_docs/systimestamp_0_0.txt | /
1. General
14. Session
29. Session Object
41. Alert
context) SYSTIMESTAMP
Categories:
| |
snowflake_docs/sha1_binary_5_0.txt | Usage Notes ¶
* The SHA1 family of functions is provided primarily for backwards compatibility with other systems. For more secure encryption, Snowflake recommends using the SHA2 family of functions.
* Do not use this function to encrypt a message that you need to decrypt. This function has no corresponding dec... | |
snowflake_docs/snowflake-db-classes_13_0.txt | Limitations ¶
is currently not supported.
Was this page helpful?
Yes No
Inc. All Rights Reserved .
On this page
1. Concepts
2. List Available Classes
3. Grant the Privilege to Create Class Instances
4. Create an Instance
5. Use an Instance
6. Available Classes
7. Limitations
Related content
L... | |
snowflake_docs/system_estimate_query_acceleration_4_0.txt | Output ¶
The function returns a JSON object with the properties described below:
Property
|
Description
---|---
` estimatedQueryTimes `
|
Object that contains the estimated query execution time in seconds for
different query acceleration scale factors. If the ` status ` for the query
is not ` eligible ` for... | |
snowflake_docs/create-password-policy_5_0.txt | Optional parameters ¶
` PASSWORD_MIN_LENGTH = _ integer _ `
Specifies the minimum number of characters the password must contain.
Supported range: 8 to 256, inclusive.
Default: 8
` PASSWORD_MAX_LENGTH = _ integer _ `
Specifies the maximum number of characters the password must contain. This
number must be grea... | |
snowflake_docs/st_ymin_2_0.txt | Syntax ¶
ST_YMIN( <geography_or_geometry_expression> )
Copy
| |
snowflake_docs/bitor_6_0.txt | Examples ¶
This example shows how to use ` BITAND() ` , ` BITOR() ` , and ` BITXOR() `
:
> 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 a... | |
snowflake_docs/commands-privacy_1_0.txt | Privacy Commands ¶
Privacy commands allow you to manage objects related to maintaining the
privacy of sensitive attributes and individuals.
| |
snowflake_docs/show-managed-accounts_0_0.txt | /
1. Organization
7. Managed Accounts
11. Account Parameters & Functions
ACCOUNTS
| |
snowflake_docs/operators-arithmetic_3_0.txt | Scale and Precision in Arithmetic Operations ¶
The _scale_ and _precision_ of the output of an arithmetic operation depends
on the scale and precision of the input(s).
This section describes the calculations Snowflake uses to preserve scale and
precision in the numeric output generated by various arithmetic operatio... | |
snowflake_docs/alter-procedure_1_0.txt | ALTER PROCEDURE ¶
Modifies the properties for an existing stored procedure. If you need to make
instead and then recreate the stored procedure.
See also:
procedure)
| |
snowflake_docs/create-failover-group_14_0.txt | | | | | |
| |
snowflake_docs/warehouse_events_history_5_0.txt | EVENT_NAME Descriptions ¶
Warehouse-related Events:
> CREATE_WAREHOUSE :
>
>
> Triggered by the creation of a new warehouse, which can occur when a user
> manually creates a warehouse or when an account is provisioned and the
> default warehouse is automatically created in the account.
>
> * Cluster number: Non... | |
snowflake_docs/st_difference_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_DIFFERENCE
Categories:
| |
snowflake_docs/var_pop_2_0.txt | Syntax ¶
**Aggregate function**
VAR_POP( [ DISTINCT ] <expr1> )
Copy
**Window function**
VAR_POP( [ DISTINCT ] <expr1> ) OVER (
[ PARTITION BY <expr2> ]
[ ORDER BY <expr3> [ ASC | DESC ] [ <window_frame> ] ]
... | |
snowflake_docs/create-table_25_1.txt | ------+-------------+------------+-------+------------+---------+
> | name | type | kind | null? | default | primary key | unique
> key | check | expression | comment |
>
> |------+--------------+--------+-------+---------+-------------+------------+-------+------------+---------|
> | B | NUMBER(38... | |
snowflake_docs/last_query_id_3_0.txt | Arguments ¶
` _ num _ `
Specifies the query to return, based on the position of the query (within the
session).
Default: ` -1 `
| |
snowflake_docs/booland_agg_5_0.txt | Usage Notes ¶
* Numeric values, Decimal, and floating point values are converted to ` TRUE ` if they are different from zero.
* Character/text types are not supported as they cannot be converted to Boolean.
* When used as a window function:
> * This function does not support:
>
>> * ORDER BY sub-... | |
snowflake_docs/decrypt_1_0.txt | DECRYPT ¶
Decrypts a BINARY value using a VARCHAR passphrase.
See also:
| |
snowflake_docs/set_email_notifications_4_0.txt | Arguments ¶
` _ notification_integration _ ` :
Specifies the identifier for the email notification integration. The
notification integration must include the ` email ` for budget notifications.
` _ email _ ` :
Specifies the email address to receive notification emails. The email
address(es) must be included in ... | |
snowflake_docs/system_stream_get_table_timestamp_2_0.txt | Syntax ¶
SYSTEM$STREAM_GET_TABLE_TIMESTAMP('<stream_name>')
Copy
| |
snowflake_docs/exp_0_0.txt | /
1. Arithmetic
4. Rounding and Truncation
13. Exponent and Root
21. Logarithmic
24. Trigonometric
42. Other
numeric) EXP
Categories:
| |
snowflake_docs/listing-access-history_0_0.txt | /
Schema:
| |
snowflake_docs/alter-connection_3_0.txt | Parameters ¶
` _ name _ `
Identifier for the connection to alter.
` ENABLE FAILOVER TO ACCOUNTS _ organization_name _ . _ account_name _
[ , _ organization_name _ . _ account_name _ ... ] `
Specifies a comma-separated list of accounts in your organization where a
secondary connection for this primary ... | |
snowflake_docs/to_decimal_1_0.txt | TO_DECIMAL , TO_NUMBER , TO_NUMERIC ¶
Converts an input expression to a fixed-point number. For NULL input, the
output is NULL.
These functions are synonymous.
See also:
| |
snowflake_docs/round_3_0.txt | Arguments ¶
**Required:**
` _ input_expr _ ` . OR . ` EXPR => _ input_expr _ `
The value or expression to operate on. The data type should be one of the
numeric data types, such as FLOAT or NUMBER.
If you specify the ` EXPR => ` named argument, you must also specify the `
SCALE => ` named argument.
**Optiona... | |
snowflake_docs/anomaly_detection_17_0.txt | Output ¶
The function returns the following columns:
Column Name
|
Data Type
|
Description
---|---|---
TS
|
TIMESTAMP_NTZ
|
The timestamps of the data
Y
|
FLOAT
|
The values for the time series
FORECAST
|
FLOAT
|
The predicted value at the timestamp.
LOWER_BOUND
|
FLOAT
|
The lower bound of the value withi... | |
snowflake_docs/usage_in_currency_daily_legacy_1_0.txt | USAGE_IN_CURRENCY_DAILY View (Legacy) ¶
The USAGE_IN_CURRENCY_DAILY view in the ORGANIZATION_USAGE schema can be used
to return the daily credit usage and usage in currency for an organization.
Important
This topic describes the legacy version of the USAGE_IN_CURRENCY_DAILY view.
If your view contains additional col... | |
snowflake_docs/tag_references_1_0.txt | TAG_REFERENCES ¶
Returns a table in which each row displays an association between a tag and
value.
The associated tag and value are the result of a direct association to an
object or through tag lineage.
| |
snowflake_docs/nullif_0_0.txt | /
reference/expressions-conditional) NULLIF
Categories:
| |
snowflake_docs/try_to_time_4_0.txt | label-date-time-input-output-supported-formats-for-auto-detection)
. For more information, see [ Date and Time Formats in Conversion Functions
The default is the current value of the [ TIME_INPUT_FORMAT
AUTO).
| |
snowflake_docs/check_json_0_0.txt | /
1. JSON and XML Parsing
9. Array/Object Creation and Manipulation
43. Map Creation and Manipulation
51. Extraction
58. Conversion/Casting
82. Type Predicates
Categories:
semistructured) (Parsing)
| |
snowflake_docs/roles_2_0.txt | Columns ¶
Column Name
|
Data Type
|
Description
---|---|---
ROLE_ID
|
NUMBER
|
Internal/system-generated identifier for the role.
CREATED_ON
|
TIMESTAMP_LTZ
|
Date and time (in the UTC time zone) when the role was created.
DELETED_ON
|
TIMESTAMP_LTZ
|
Date and time (in the UTC time zone) when the role was de... | |
snowflake_docs/trunc_3_0.txt | Arguments ¶
` _ input_expr _ `
The value or expression to operate on. The data type should be one of the
numeric data types, such as FLOAT or NUMBER.
` _ scale_expr _ `
The number of digits the output should include after the decimal point. The
expression should evaluate to an integer from -38 to +38.
The default ... | |
snowflake_docs/show-session-policies_3_0.txt | Syntax ¶
SHOW SESSION POLICIES
Copy
| |
snowflake_docs/any_value_2_0.txt | Syntax ¶
**Aggregate function**
ANY_VALUE( [ DISTINCT ] <expr1> )
Copy
**Window function**
ANY_VALUE( [ DISTINCT ] <expr1> ) OVER ( [ PARTITION BY <expr2> ] )
Copy
| |
snowflake_docs/copy-into-table_14_0.txt | Copy options ( ` copyOptions ` ) ¶
You can specify one or more of the following copy options (separated by blank
spaces, commas, or new lines):
` ON_ERROR = CONTINUE | SKIP_FILE | SKIP_FILE_ _ num _ | 'SKIP_FILE_
_ num _ %' | ABORT_STATEMENT `
Use :
Data loading only
Definition :
String (constant) th... | |
snowflake_docs/password_policies_1_0.txt | PASSWORD_POLICIES view ¶
This Account Usage view provides the user-defined [ password policies
in your account.
Each row in this view corresponds to a different password policy.
| |
snowflake_docs/array_generate_range_1_0.txt | ARRAY_GENERATE_RANGE ¶
of integer values within a specified range (e.g. ` [2, 3, 4] ` ).
| |
snowflake_docs/system_estimate_search_optimization_costs_10_0.txt | Examples ¶
The following example shows the estimated costs of adding search optimization
to a table:
>
> SELECT
> SYSTEM$ESTIMATE_SEARCH_OPTIMIZATION_COSTS('table_without_search_opt')
> AS estimate_for_table_without_search_optimization;
>
>
> Copy
>
>
>
> +--------------------------------------------... | |
snowflake_docs/system_current_user_task_name_4_0.txt | Examples ¶
Insert the name of the current task into a table along with the current time:
>
> CREATE TASK mytask
> WAREHOUSE = mywh,
> SCHEDULE = '5 MINUTE'
> AS
> INSERT INTO mytable(ts, task) VALUES(CURRENT_TIMESTAMP,
> SYSTEM$CURRENT_USER_TASK_NAME());
>
> SELECT * FROM mytable;
> ... | |
snowflake_docs/create-security-integration-api-auth_11_0.txt | label-access-control-securable-objects) , see [ Overview of
| |
snowflake_docs/try_hex_decode_string_3_0.txt | Arguments ¶
` _ input _ `
A hex-encoded string expression. Typically the input was created by a call to
| |
snowflake_docs/create-table_13_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/create-file-format_16_0.txt | label-access-control-securable-objects) , see [ Overview of
| |
snowflake_docs/drop-schema_2_0.txt | Syntax ¶
DROP SCHEMA [ IF EXISTS ] <name> [ CASCADE | RESTRICT ]
Copy
| |
snowflake_docs/execute-immediate_2_0.txt | Syntax ¶
EXECUTE IMMEDIATE '<string_literal>'
[ USING ( <bind_variable> [ , <bind_variable> ... ] ) ]
EXECUTE IMMEDIATE <variable>
[ USING ( <bind_variable> [ , <bind_variable> ... ] ) ]
EXECUTE IMMEDIATE $<session_variable>
[ USING ( <bind_variable> [ , <bind_variable> ... ] ) ]
... | |
snowflake_docs/last_query_id_5_0.txt | Examples ¶
Return the ID for the most recently-executed query:
>
> SELECT LAST_QUERY_ID();
>
>
> Copy
Return the ID for the first query executed in the session:
>
> SELECT LAST_QUERY_ID(1);
>
>
> Copy
Was this page helpful?
Yes No
Inc. All Rights Reserved .
On this page
1. Syntax
2. Arguments
... | |
snowflake_docs/show-file-formats_5_0.txt | Examples ¶
The following examples are all equivalent:
>
> USE DATABASE testdb;
>
> SHOW FILE FORMATS;
>
>
> Copy
>
>
>
> +---------------------------------+-----------+---------------+-------------+------+--------------+---------+-----------------+
> | created_on | name ... | |
snowflake_docs/functions_0_0.txt | /
Schema:
| |
snowflake_docs/external_table_files_5_0.txt | Output ¶
The function returns the following columns:
Column Name
|
Data Type
|
Description
---|---|---
FILE_NAME
|
TEXT
|
Name of source file and relative path to the staged file
REGISTERED_ON
|
TIMESTAMP_LTZ
|
Timestamp when the file metadata was added to an external table (i.e. when the
external table metada... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.