COF-C02 · Question #7
A user unloaded a Snowflake table called mytable to an internal stage called mystage. Which command can be used to view the list of files that has been uploaded to the staged?
The correct answer is D. list @mystage. The LIST command in Snowflake lists files in a stage. Named internal stages use the syntax @stage_name, so the correct command is LIST @mystage; (D). Option A (LIST @mytable) would list files in the table stage for mytable, not the named stage mystage. Option B uses a typo…
Question
A user unloaded a Snowflake table called mytable to an internal stage called mystage. Which command can be used to view the list of files that has been uploaded to the staged?
Options
- Alist @mytable;
- Blist @%raytable;
- Clist @ %m.ystage;
- Dlist @mystage;
How the community answered
(31 responses)- A6% (2)
- B3% (1)
- C3% (1)
- D87% (27)
Explanation
The LIST command in Snowflake lists files in a stage. Named internal stages use the syntax @stage_name, so the correct command is LIST @mystage; (D). Option A (LIST @mytable) would list files in the table stage for mytable, not the named stage mystage. Option B uses a typo (@%raytable). Option C has incorrect syntax with spaces and a period in the stage name. The @ prefix before a stage name is required, and named stages are referenced directly as @stagename.
Topics
Community Discussion
No community discussion yet for this question.