Spaces:
Build error
Build error
Update script.py
Browse files
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()
|