jason137 commited on
Commit
e3a559e
·
1 Parent(s): 067911c

Update script.py

Browse files
Files changed (1) hide show
  1. script.py +5 -2
script.py CHANGED
@@ -10,6 +10,9 @@ tables = ['Album', 'Artist', 'Track']
10
  db = SQLDatabase.from_uri("sqlite:///Chinook.db", include_tables=tables)
11
 
12
  con = sqlite3.connect("Chinook.db")
 
13
  for table in tables:
14
- rows = cur.execute("select * from %s limit 5" %s table).fetchall()
15
- st.table(rows)
 
 
 
10
  db = SQLDatabase.from_uri("sqlite:///Chinook.db", include_tables=tables)
11
 
12
  con = sqlite3.connect("Chinook.db")
13
+
14
  for table in tables:
15
+ rows = cur.execute("select * from %s limit 5" % table).fetchall()
16
+ st.table(rows)
17
+
18
+ con.close()