
Explanation:
The RESULT_SCAN function is the correct method for post-processing SHOW commands in Snowflake. It treats the output of the previous command as a table that can be queried using standard SQL. The community discussion shows 100% consensus on option A with multiple upvoted comments confirming this approach. Option B (CURSOR) is not applicable as CURSOR is used for procedural SQL, not for processing SHOW command results. Option C (FROM clause in brackets) is incorrect syntax for processing SHOW command outputs. Option D (RESULTSET) is not a valid Snowflake function or command for this purpose.
How can a Snowflake user process the output from the SHOW FILE FORMATS command?
A
Use the RESULT_SCAN function.
B
Create a CURSOR for the command.
C
Put it in the FROM clause in brackets.
D
Assign the command to RESULTSET.
No comments yet.