Skip to content

Commit

Permalink
Update sqlite3-python.md
Browse files Browse the repository at this point in the history
  • Loading branch information
ty-abbott authored Dec 11, 2024
1 parent 0adb704 commit c513e3f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions content/coding/sqlite3-python.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
'''
```
# Import module
import sqlite3
Expand Down Expand Up @@ -36,11 +36,12 @@ conn.commit()
# Closing the connection
conn.close()
'''
```

It is also really critical to make the values to add a tuple for example

'''
```
statement = '''INSERT into tasks (description) VALUES (?)'''
cursor.execute(statement, (value,))
```

0 comments on commit c513e3f

Please sign in to comment.