ExamGecko
Question list
Search
Search

Question 499 - COF-C02 discussion

Report
Export

What should be used when creating a CSV file format where the columns are wrapped by single quotes or double quotes?

A.
BINARY_FORMAT
Answers
A.
BINARY_FORMAT
B.
ESCAPE_UNENCLOSED_FIELD
Answers
B.
ESCAPE_UNENCLOSED_FIELD
C.
FIELD_OPTIONALLY_ENCLOSED_BY
Answers
C.
FIELD_OPTIONALLY_ENCLOSED_BY
D.
SKIP BYTE ORDER MARK
Answers
D.
SKIP BYTE ORDER MARK
Suggested answer: C

Explanation:

When creating a CSV file format in Snowflake and the requirement is to wrap columns by single quotes or double quotes, the FIELD_OPTIONALLY_ENCLOSED_BY parameter should be used in the file format specification. This parameter allows you to define a character (either a single quote or a double quote) that can optionally enclose each field in the CSV file, providing flexibility in handling fields that contain special characters or delimiters as part of their data.

References:

Snowflake Documentation: CSV File Format

asked 23/09/2024
Arvind Prasad S
41 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first