1 parent 2b689e0 commit 7be4917Copy full SHA for 7be4917
1 file changed
db_table_creation.py
@@ -12,6 +12,8 @@
12
13
14
db.execute("select exists(select * from information_schema.tables where table_name=%s)", ('recipes',))
15
+
16
+# checking if table already exists then pass or create that table
17
if db.fetchone()[0]:
18
pass
19
else:
0 commit comments