简体   繁体   中英

How to Ensure First Row is Selected when Creating an External Table in Azure Synapse Serverless Pool

I'm able to create an external table in Serverless Pool, but the table won't allow me to select first row.

As you can see from the screen shot columns C1, C2, C3, C4, C5 apear in the first row

在此处输入图像描述

Even though I have specified to use the first row when creating the external table.

在此处输入图像描述

indeed you've to set First Row to 2 if you would like to skip the headers in the file. Besides I wasn't able to see first row statement on the screenshots of the scripts in your question.

Please have a look at the official documentation here .

In your Create External File Format section of your script you have to say "Format_Options(FIRST_ROW = 2)".

By the way this is also very good explained in another Stackoverflow question here .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM