I have a .txt file and 1st row in the file is column name. I want to load this data to Snowflake table.
1st think How can run a select Statement to see all the columns from file using *. I don't want write t.$1, t.$2, .... ect.
Something Similar to SELECT t. FROM '@azure_blob_stage_poc/Dim_Date.txt' AS t ORDER BY 1;*
Also When Loading data to Table I have to Ignore 1st Row from file as It contains Column Names. I need Snow flake script similar to COPY INTO POC.Dim_Date FROM '@azure_blob_stage_poc/Dim_Date.txt';
If I don;t ignore 1st Row and try to load getting error message: "Field delimiter ',' found while expecting record delimiter '\n' File 'Dim_Date.txt', line 2, character 547 Row 2, column "DIM_DATE"["LOAD_DT":55] If you would like to continue loading when an error is encountered, use other values such as 'SKIP_FILE' or 'CONTINUE' for the ON_ERROR option. For more information on loading options, please run 'info loading_data' in a SQL client."