We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6151b94 commit 1138acdCopy full SHA for 1138acd
4 DB in Python/SQLite Demo/newdb.py
@@ -0,0 +1,5 @@
1
+import sqlite3
2
+
3
+db_file = "new.db"
4
5
+connection = sqlite3.connect(db_file)
4 DB in Python/SQLite Demo/vinventory.py
@@ -96,7 +96,8 @@ def update_data():
96
#update the change made date log
97
sql = "UPDATE vaccines set changemade = ? where id = ?"
98
changemade = str(now.year) +"/"+str(now.month) +"/"+str(now.day)
99
- conn.execute(sql, (changemade,update_ID))
+ conn.execute(sql, (changemade,update_ID))
100
+ conn.commit()
101
102
except Error as e:
103
print(e)
0 commit comments