0

I am getting an error message by debugger which is : builtins.TypeError TypeError: 'int' object is not subscriptable.

0

This rows = db.execute("INSERT INTO users returns an integer as per spec Hints:

If str is an INSERT, and the table into which data was inserted contains an autoincrementing PRIMARY KEY, then execute returns the value of the newly inserted row’s primary key.

2
  • Thanks friend, I just happened to skip over Hints. That solves the problem. Thanks once again! – sk.76 Jul 20 '17 at 15:10
  • Code removed for acadenic honesty. – sk.76 Jul 20 '17 at 18:45

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .