无法将csv.DictReader对象从字节转换为字符串

时间:2017-07-21 17:40:43

标签: python python-3.x csv

SELECT
    CODE
    ,Type
    ,AD.DESCRIPTION
    ,QUANTITY
    ,AD.[COSTS]
  ,A.UOM
FROM 
    Table1 AS AD INNER JOIN TableA AS A
ON
    CODE = CASE
                        WHEN Type = 'M'
                            THEN A.CODE
                  END
   INNER JOIN TableB AS B
ON
    Code = CASE
                            WHEN Type = 'A'
                                THEN B.CODE
                      END

我收到以下错误: _csv.Error:迭代器应该返回字符串,而不是字节(你是否在文本模式下打开文件?)

有什么建议吗?

0 个答案:

没有答案