1062, u"Duplicate entry '10-21806-2-21' for key 'PRIMARY'")

js2java 发布于 2017/06/13 09:06
阅读 200
收藏 0

raceback (most recent call last):
  File "D:\Users\Administrator\workspace\userLable\FavorCatelab.py", line 175, in <module>
    insertDatas_rcmd(labrow)
  File "D:\Users\Administrator\workspace\userLable\FavorCatelab.py", line 53, in insertDatas_rcmd
    executemany_rcmd(sql, tmp)
  File "D:\Users\Administrator\workspace\userLable\FavorCatelab.py", line 61, in executemany_rcmd
    conn.executemany(sql, tmp)
  File "E:\ProgramData\Anaconda2\lib\site-packages\pymysql\cursors.py", line 193, in executemany
    self._get_db().encoding)
  File "E:\ProgramData\Anaconda2\lib\site-packages\pymysql\cursors.py", line 230, in _do_execute_many
    rows += self.execute(sql + postfix)
  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 856, in query
    self._affected_rows = self._read_query_result(unbuffered=unbuffered)
  File "E:\ProgramData\Anaconda2\lib\site-packages\pymysql\connections.py", line 1057, in _read_query_result
    result.read()
  File "E:\ProgramData\Anaconda2\lib\site-packages\pymysql\connections.py", line 1340, in read
    first_packet = self.connection._read_packet()
  File "E:\ProgramData\Anaconda2\lib\site-packages\pymysql\connections.py", line 1014, in _read_packet
    packet.check_error()
  File "E:\ProgramData\Anaconda2\lib\site-packages\pymysql\connections.py", line 393, in check_error
    err.raise_mysql_exception(self._data)
  File "E:\ProgramData\Anaconda2\lib\site-packages\pymysql\err.py", line 107, in raise_mysql_exception
    raise errorclass(errno, errval)
pymysql.err.IntegrityError: (1062, u"Duplicate entry '10-21806-2-21' for key 'PRIMARY'")
 

加载中
返回顶部
顶部