0
0
Snowflakecloud~5 mins

COPY INTO command in Snowflake - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is the purpose of the COPY INTO command in Snowflake?
The COPY INTO command loads data from files in external or internal stages into Snowflake tables. It helps move data efficiently into the database.
Click to reveal answer
beginner
Which file formats can COPY INTO handle in Snowflake?
It supports common formats like CSV, JSON, Parquet, Avro, and ORC files for loading data.
Click to reveal answer
beginner
What is a 'stage' in the context of the COPY INTO command?
A stage is a location where data files are stored before loading. It can be internal (inside Snowflake) or external (like AWS S3, Azure Blob Storage).
Click to reveal answer
intermediate
How does Snowflake handle errors during a COPY INTO operation?
You can specify options like ON_ERROR to control behavior: skip errors, continue loading, or abort the operation.
Click to reveal answer
beginner
What does the FILE_FORMAT option do in the COPY INTO command?
It tells Snowflake how to interpret the data files by specifying the format type and related settings like delimiter or compression.
Click to reveal answer
What does the COPY INTO command do in Snowflake?
AExports data from tables to files
BLoads data from files into tables
CDeletes data from tables
DCreates new tables
Where can the source files be located for the COPY INTO command?
AOnly internal Snowflake stages
BOnly external cloud storage
CInternal or external stages
DOnly local computer
Which option controls how errors are handled during COPY INTO?
AON_ERROR
BFILE_FORMAT
CSTAGE_LOCATION
DDATA_RETENTION_TIME
What does the FILE_FORMAT option specify?
AHow to read the input files
BThe cloud provider
CThe destination table
DThe user permissions
Which of these is NOT a supported file format for COPY INTO?
ACSV
BJSON
CParquet
DExcel XLSX
Explain how the COPY INTO command works in Snowflake and what key options you can use.
Think about where files come from, how Snowflake reads them, and what happens if errors occur.
You got /4 concepts.
    Describe the difference between internal and external stages in the context of the COPY INTO command.
    Consider where your data files live before loading.
    You got /4 concepts.