I need a workaround for Excel Guessing Data Types problem

后端 未结 4 978
忘掉有多难
忘掉有多难 2020-12-03 16:13

I\'m creating a utility to import data from Excel to Oracle database,

I have a fixed template for the excel file,

Now, when I\'m trying to import the data by J

4条回答
  •  情话喂你
    2020-12-03 16:49

    I found a solution by adding IMEX=1 for the connection string, but there's a special format for it which descriped in the following link.

    The IMEX parameter is for columns that use mixed numeric and alpha values. The Excel driver will typically scan the first several rows in order to determine what data type to use for each column. If a column is determined to be numeric based upon a scan of the first several rows, then any rows with alpha characters in this column will be returned as Null. The IMEX parameter (1 is input mode) forces the data type of the column to text so that alphanumeric values are handled properly.

    Regards

提交回复
热议问题