COF-C02 · Question #486
Which command should be used to unload all the rows from a table into one or more files in a named stage?
The correct answer is A. COPY INTO. COPY INTO <stage_location> is the command used to unload (export) data from a Snowflake table into files stored in a stage (internal or external). GET is used to download files from an internal stage to a local machine. PUT uploads local files to an internal stage. INSERT INTO…
Question
Which command should be used to unload all the rows from a table into one or more files in a named stage?
Options
- ACOPY INTO
- BGET
- CINSERT INTO
- DPUT
How the community answered
(35 responses)- A91% (32)
- B3% (1)
- D6% (2)
Explanation
COPY INTO <stage_location> is the command used to unload (export) data from a Snowflake table into files stored in a stage (internal or external). GET is used to download files from an internal stage to a local machine. PUT uploads local files to an internal stage. INSERT INTO adds rows into a table, not a stage. COPY INTO is the correct and only command for bulk data unloading in Snowflake.
Topics
Community Discussion
No community discussion yet for this question.