Issue querying from Access database: “could not convert string to float: E+6”

后端 未结 2 1060
臣服心动
臣服心动 2020-12-07 03:43

I have a database in MS Access. I am trying to query one table to Python using pypyodbc. I get the following error message:

ValueError: could not conv

2条回答
  •  难免孤独
    2020-12-07 04:27

    As I was putting together test files for you to try to reproduce, I noticed that two of the fields in the table were set to Single type rather than Double. Changed them to Double and that solved the problem. Sorry for the bother and thanks for the help.

提交回复
热议问题