Expressions and operators

Expressions

Concatenation Operator

You might also be interested in Concat helper.

Oracle concatenation is achieved in JavaScript using Template literal. Also it uses the Concat Helper to properly handle concatenations with nulls.

Oracle

IN -> Oracle_01.sql
--Additional Params: -t JavaScript
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

SnowConvert helpers Code removed from the example. You can find them here.

Logical Operators

Oracle

Snowflake

You might also be interested in IS NULL helper.

SnowConvert helpers Code removed from the example. You can find them here.

Comparison Operator

Documentation in progress.

IS [NOT] NULL

You might also be interested in IS NULL helper.

Oracle

Snowflake

SnowConvert helpers Code removed from the example. You can find them here.

Like Operator

You might also be interested in Like operator helper.

When there is a LIKE operation, the helper function will be called instead.

Oracle

Snowflake

SnowConvert helpers Code removed from the example. You can find them here.

Between Operator

You may also be interested in Between operator helper.

Oracle

Snowflake

SnowConvert helpers Code removed from the example. You can find them here.

IN Operator

Oracle

Snowflake

SnowConvert helpers Code removed from the example. You can find them here.

Boolean Expressions

Oracle

Snowflake

SnowConvert helpers Code removed from the example. You can find them here.

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

SnowConvert helpers Code removed from the example. You can find them here.

For more information on the function's transformations check here.

  1. SSC-EWI-OR0013: NLS parameter is not supported.

Last updated