我目前正尝试使用python库pyodbc加载1000万行数据。考虑以下示例,其中customer表有超过1000万行,请注意jeetl:
results = jeetl.dw_command_cursor("select * from Customer")如果我把它限制在一百万行以内,但是它的脸和十行都是平平的话,上面的效果很好,有解决办法吗?下面是我一直看到的错误消息:
pyodbc.Error: ('08S01', '[08S01] Communication error while getting a tuple;\nCommunication error while getting a tuple (26) (SQLExecDirectW)')提前感谢
发布于 2014-02-14 16:46:23
可能您的查询结果太大,请尝试检查max_allowed_packet_size。例如在mysql中:https://dev.mysql.com/doc/refman/5.5/en/packet-too-large.html
也许您需要做的是分页结果:http://www.petefreitag.com/item/451.cfm
https://stackoverflow.com/questions/21784785
复制相似问题