Complete the code to copy data from a stage into a table.
COPY INTO my_table FROM [1] FILE_FORMAT = (TYPE = 'CSV');
The COPY INTO command requires the source location, which is a stage path like '@my_stage/data/'.
Complete the code to specify the file format as JSON in the COPY INTO command.
COPY INTO my_table FROM '@my_stage/data/' FILE_FORMAT = (TYPE = [1]);
The FILE_FORMAT option specifies the data format. For JSON files, use TYPE = 'JSON'.
Fix the error in the COPY INTO command by choosing the correct option for the file format option name.
COPY INTO my_table FROM '@my_stage/data/' [1] = (TYPE = 'CSV');
The correct option name to specify the file format is FILE_FORMAT.
Fill both blanks to copy data from a stage and specify to skip the header row.
COPY INTO my_table FROM [1] FILE_FORMAT = (TYPE = 'CSV' [2] = 1);
The source is a stage path '@my_stage/data/'. To skip the header row in CSV, use SKIP_HEADER = 1.
Fill all three blanks to copy data from a stage, specify CSV format, and set the field delimiter to a semicolon.
COPY INTO my_table FROM [1] FILE_FORMAT = (TYPE = [2] FIELD_DELIMITER = [3]);
The source is '@my_stage/data/'. The file format type is 'CSV'. The field delimiter for CSV can be set to a semicolon ';'.