jason137 commited on
Commit
03abb31
·
1 Parent(s): e3a559e

Update script.py

Browse files
Files changed (1) hide show
  1. script.py +1 -0
script.py CHANGED
@@ -10,6 +10,7 @@ tables = ['Album', 'Artist', 'Track']
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()
 
10
  db = SQLDatabase.from_uri("sqlite:///Chinook.db", include_tables=tables)
11
 
12
  con = sqlite3.connect("Chinook.db")
13
+ cur = con.cursor()
14
 
15
  for table in tables:
16
  rows = cur.execute("select * from %s limit 5" % table).fetchall()