OR REPLACE

Create table option

Description

Replaces any table with the same name if it exists. Cannot appear with IF NOT EXISTS.

circle-check

Sample Source

BigQuery (Input Code)

CREATE OR REPLACE TABLE table1 ( 
    col1 integer
);

Snowflake (Output Code)

CREATE OR REPLACE TABLE table1 ( 
    col1 integer
); 

Last updated

Was this helpful?