Skip to content

Commit 572bf1a

Browse files
authored
Update mysql.py
1 parent af9c9a9 commit 572bf1a

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

mysql.py

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,24 @@
66
for t in cur1:
77
...: print(t)
88
...:
9-
9+
cur1.execute("SELECT COUNT(*) from information_schema.tables where table_schema = 'rastey'")
1010
cur1.execute("SELECT * FROM information_schema.tables WHERE table_schema ='rastey';")
1111

12-
12+
myresult = cur1.fetchall()
13+
# commit after create, update, and delete tables in database
14+
mydb.commit()
1315
for y in cur1:
1416
...: print(y)
1517

1618

19+
20+
21+
22+
23+
24+
25+
26+
27+
28+
29+

0 commit comments

Comments
 (0)