Home/Support/Support Forum/How to correct the following error?
Welcome to Digi Forum, where you can ask questions and receive answers from other members of the community.

How to correct the following error?

0 votes

IntegrityError Traceback (most recent call last)
<ipython-input-1-395ea8d30e87> in <module>
489
490 if __name__ == '__main__':
--> 491 main()

<ipython-input-1-395ea8d30e87> in main()
359 ACTOR_5 = (5, 'fname5', 'lname5', 'male')
360 # insert_ACTOR
--> 361 insert_ACTOR(conn, ACTOR_1)
362 insert_ACTOR(conn, ACTOR_2)
363 insert_ACTOR(conn, ACTOR_3)

<ipython-input-1-395ea8d30e87> in insert_ACTOR(conn, ACTOR)
43 VALUES(?,?,?,?) '''
44 cur = conn.cursor()
---> 45 cur.execute(sql, ACTOR)
46 return cur.lastrowid
47

IntegrityError: UNIQUE constraint failed: ACTOR.aid
asked Jun 5 in Python by AliceNr New to the Community (0 points)

Please log in or register to answer this question.

...