XLS与XLSX中的空白数据问题 [英] Blank Data Issue in in XLS vs XLSX
问题描述
您好,
我正在从Excel读取数据。在Excel数据中,某些单元格为空,最初客户端为我提供了XLS文件。
I am reading data from Excel .In Excel data some cell are blank and initially client has provided me XLS file.
因此,对于XLS文件,我使用了Jet提供的IMEX = 1 属性,它正在将空白源数据处理为 NULL。
So, for XLS file I was using Jet Provided with IMEX =1 property and It is treating Blank Source data to NULL.
现在客户端已将文件从XLS更改为XLSX扩展名。
Now Client has changed the file from XLS to XLSX extension.
因此,对于XLSX文件 我正在使用 Provider = Microsoft.ACE.OLEDB.12.0 ,IMEX = 1
属性,它将空白源数据仅处理为空白并将高级编辑器输出转换为WSTR。
So, for XLSX file I am using Provider=Microsoft.ACE.OLEDB.12.0 with IMEX=1 property and It is treating Blank source data to Blank only and converting Advance Editor output as WSTR.
您能帮忙解决这个问题吗?基本上我只想将Blank保持为NULL。
Can you please help to resolve this issue ? basically i want to keep Blank to NULL only.
推荐答案
创建派生列并检查它是否为空。如果是,请将其设置为NULL。
Create a derived column and check if it is empty. If yes, set it to NULL.
这篇关于XLS与XLSX中的空白数据问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!