Expressions and operators
Expressions
Concatenation Operator
Oracle concatenation is achieved in JavaScript using Template literal. Also it uses the Concat Helper to properly handle concatenations with nulls.
Oracle
CREATE OR REPLACE PROCEDURE CONCAT_TEST
IS
NUM1 INTEGER := 123;
NUM2 INTEGER := 321;
VAR1 VARCHAR(10) := 'value';
concat_var VARCHAR(100);
sql_stmt VARCHAR(100);
BEGIN
concat_var := NUM1 || NUM2 || VAR1 || 'literal';
sql_stmt := 'INSERT INTO t1 VALUES (''' || concat_var || ''')';
EXECUTE IMMEDIATE sql_stmt;
END;Snowflake
Logical Operators
Oracle
Snowflake
Comparison Operator
Documentation in progress.
IS [NOT] NULL
Oracle
Snowflake
Like Operator
When there is a LIKE operation, the helper function will be called instead.
Oracle
Snowflake
Between Operator
Oracle
Snowflake
IN Operator
Oracle
Snowflake
Boolean Expressions
Oracle
Snowflake
Function Expressions
For Function Expressions inside procedures, they are being converted to the corresponding function or expression in Snowflake. These function calls are passed to an EXEC with a CALL or a SELECT depending on the converted value.
Oracle
Snowflake
For more information on the functions transformations check here.
Last updated
Was this helpful?