COF-C02 · Question #9
Which command is used to unload data from a Snowflake table into a file in a stage?
The correct answer is A. COPY INTO. COPY INTO is the Snowflake command used for both loading data (COPY INTO <table>) and unloading data (COPY INTO <stage>). When unloading, you specify the stage as the target: COPY INTO @mystage FROM mytable. Option B (GET) is used to download files from an internal stage to a…
Question
Which command is used to unload data from a Snowflake table into a file in a stage?
Options
- ACOPY INTO
- BGET
- CWRITE
- DEXTRACT INTO
How the community answered
(62 responses)- A92% (57)
- B3% (2)
- C2% (1)
- D3% (2)
Explanation
COPY INTO is the Snowflake command used for both loading data (COPY INTO <table>) and unloading data (COPY INTO <stage>). When unloading, you specify the stage as the target: COPY INTO @mystage FROM mytable. Option B (GET) is used to download files from an internal stage to a local file system - it does not unload table data. Options C (WRITE) and D (EXTRACT INTO) are not valid Snowflake commands.
Topics
Community Discussion
No community discussion yet for this question.