There is an exception cmg in the line curbook.execute(“INSERT INTO bookrecords (S.No.,book”+str(self.j)+") VALUES (?,?);",(self.s,no))
I have used python , Qt Designer5 and SQLite3 to develop this code.
s,j variables are class attributes used in the class function. ‘no’ is a local attribute , defined inside searchbook() func… curbook is the cursor object for the database.The name of table is also correct.Output is available in the attachment. PLEASE POINT OUT MY MISTAKE CAUSING THE ERROR