python 查询 mysql ,带参数错误

==========
Traceback (most recent call last):
  File "D:\Users\Administrator\workspace\svnRecom\ItemCF2Mysql.py", line 61, in <module>
    counsu=queryCou()
  File "D:\Users\Administrator\workspace\svnRecom\ItemCF2Mysql.py", line 45, in queryCou
    rows = queryrcmd(sql)
  File "D:\Users\Administrator\workspace\svnRecom\ItemCF2Mysql.py", line 57, in queryrcmd
    conn.execute(sql)
  File "E:\ProgramData\Anaconda2\lib\site-packages\pymysql\cursors.py", line 166, in execute
    result = self._query(query)
  File "E:\ProgramData\Anaconda2\lib\site-packages\pymysql\cursors.py", line 322, in _query
    conn.query(q)
  File "E:\ProgramData\Anaconda2\lib\site-packages\pymysql\connections.py", line 855, in query
    self._execute_command(COMMAND.COM_QUERY, sql)
  File "E:\ProgramData\Anaconda2\lib\site-packages\pymysql\connections.py", line 1091, in _execute_command
    packet = prelude + sql[:packet_size-1]
TypeError: cannot concatenate 'str' and 'tuple' objects

翻翻过去那场雪
浏览 404回答 1
1回答

蝴蝶不菲

="+str(SupplierId)
打开App,查看更多内容
随时随地看视频慕课网APP