In a COPY INTO statement, which approach specifies the exact files to load from a stage?

Master the SnowPro Advanced Architect Test with flashcards, multiple-choice questions, and detailed explanations. Prepare thoroughly for your certification!

Multiple Choice

In a COPY INTO statement, which approach specifies the exact files to load from a stage?

Explanation:
The main idea is precise control over which files are loaded from a stage. In COPY INTO, you specify an exact set of files to ingest using the FILES parameter, listing them as a comma-separated list inside parentheses. This lets you load only the files you want (for example, FILES = ('sales_202406.csv','sales_202407.csv')), even when other files exist in the stage. Not specifying files loads all files from the stage path, and using a pattern filters by name but does not enumerate a fixed list of files. Listing a single file name is technically valid for that one file, but FILES is the mechanism designed to handle an explicit, potentially multiple-file selection in one place.

The main idea is precise control over which files are loaded from a stage. In COPY INTO, you specify an exact set of files to ingest using the FILES parameter, listing them as a comma-separated list inside parentheses. This lets you load only the files you want (for example, FILES = ('sales_202406.csv','sales_202407.csv')), even when other files exist in the stage.

Not specifying files loads all files from the stage path, and using a pattern filters by name but does not enumerate a fixed list of files. Listing a single file name is technically valid for that one file, but FILES is the mechanism designed to handle an explicit, potentially multiple-file selection in one place.

Subscribe

Get the latest from Passetra

You can unsubscribe at any time. Read our privacy policy