Advertisement

TrimwebsolutionsTrimwebsolutions

Problem and Solutions

Python Sqllite - UPDATE command executes but doesn't update in python

By M.K. Verma · 30 April 2022

Python Sqllite - UPDATE command executes but doesn't update in python

It may be caused because Your code works fine both in Windows and Linux, the only reason to see that kind of behavior is that you are modifying two files with same name in a different location. Check what file is being referenced in your DBBrowser.

And in doubt prefer absolute paths as in your comment above

connection = sql.connect("C:/Users/Abinash/Desktop/data.db")