在SSIS中处理额外的列数据

发布于 2025-01-26 13:38:53 字数 80 浏览 1 评论 0原文

我有一个带有10列(标头)的Excel,因为第六列是空列。 当我转换为文本文件时,我得到了9列(删除空列),但数据行为10。 如何处理排除空数据行

I have an excel with 10 columns(Headers) as 6th column is empty column.
When I converted to text file, I got 9 columns(Removing empty column) but the data rows are 10.
How can I handle to exclude empty data row

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

淡淡绿茶香 2025-02-02 13:38:53

您可以使用条件拆分转换:

  • 将输出名称重命名为:删除所有空行
  • 设置条件
    到:isnull(col1)&& isnull(Col2)&& ....&& ISNULL(COLN)
  • 将“有条件拆分”连接到目的地时,SSIS会询问您需要返回的“条件拆分”需要什么输出。要输出无空行的整个集合,请选择“有条件的拆分默认输出”:

You can use a conditional split transformation :

  • Rename the Output Name to : Remove all empty rows
  • Set the condition
    to : ISNULL(Col1) && ISNULL(Col2) && .... && ISNULL(ColN)
  • When connecting your “Conditional Split” to your destination, SSIS will ask you what output the “Conditional Split” needs to return. To output the entire set without the empty rows, chose the “Conditional Split Default Output”:
    enter image description here
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文