Skip to content

Commit 74d4925

Browse files
authored
09-working-with-sql: fix sql command
Pull Request: #316
1 parent 5ff5b48 commit 74d4925

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

_episodes/09-working-with-sql.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ con = sqlite3.connect("data/portal_mammals.sqlite")
6666
cur = con.cursor()
6767
6868
# Return all results of query
69-
SELECT plot_id FROM plots WHERE plot_type="Control"')
69+
cur.execute('SELECT plot_id FROM plots WHERE plot_type="Control"')
7070
cur.fetchall()
7171
7272
# Return first result of query

0 commit comments

Comments
 (0)