DDL - DML Statements

circle-info

Some parts in the output code are omitted for clarity reasons.

circle-info

All statements use the EXEC helper.

SELECT

Oracle

IN -> Oracle_01.sql
--Additional Params: -t JavaScript
CREATE OR REPLACE PROCEDURE PROC1 (param1 VARCHAR)
IS
    VAR1 NUMBER := 789;
BEGIN
    SELECT * FROM TABLE01;
    SELECT DISTINCT COL1 FROM TABLE01;
    SELECT * FROM TABLE01 WHERE COL1 = VAR1;
    SELECT * FROM TABLE01 WHERE COL1 = PARAM1;
    SELECT * FROM TABLE01 WHERE COL1 = PARAM1 AND COL2 = VAR1;
END;

Snowflake

circle-info

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

SELECT INTO

Oracle

Snowflake

circle-info

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

INSERT and INSERT INTO SELECT

Oracle

Snowflake

circle-info

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

DELETE

Oracle

Snowflake

circle-info

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

UPDATE

Oracle

Snowflake

circle-info

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

MERGE

Oracle

Snowflake

circle-info

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

  1. SSC-EWI-0022: ONE OR MORE IDENTIFIERS IN THIS STATEMENT WERE CONSIDERED PARAMETERS BY DEFAULT. REFERENCED TABLE NOT FOUND.

Last updated